Skip to content

Update system tests to account for Next.js removal #2652

Description

@MikeEdgar

Since the removal of Next.js, the system tests have broken and will require adjustments. The bulk of the work likely will be with the locators [1], but there may be other changes as well.

When updating the locators, we should make sure to use OUIA component identifiers (adding them in the UI as needed) instead of full DOM paths. There are a few examples in the updated TypeScript Playwright tests that use these locators [2], for example.

[1] https://github.com/streamshub/console/tree/755115d6dc9d1e152bf307c3dfe245bf646ef96a/systemtests/src/main/java/com/github/streamshub/systemtests/locators
[2]

async clickFirstLinkInTheTable(ouiaId: string, dataLabel?: string) {
const link = this.page
.locator(`table[data-ouia-component-id="${ouiaId}"]`)
.locator("tbody")
.locator("tr")
.first()
.locator(`td${dataLabel? `[data-label="${dataLabel}"]` : ""} a`)
.first();
link.click();
}

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions