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(); |
|
} |
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]
console/ui/tests/playwright/authenticated-page.ts
Lines 97 to 106 in 755115d