Fix flaky global continue button locator

This commit is contained in:
JennyNou 2026-03-10 13:23:45 -04:00
parent 72e4269fd8
commit ad228f735c

View file

@ -17,7 +17,7 @@ export class BasePage {
constructor(page: Page) { constructor(page: Page) {
this.page = page; this.page = page;
this.continueButton = page.locator('[id="infoBox"]').getByRole('button'); this.continueButton = page.locator('button', { hasText: /get\s*started|continue/i });
this.pageSpinner = page.getByRole('status'); this.pageSpinner = page.getByRole('status');
this.buttonLoadSpin = page.getByRole('alert'); this.buttonLoadSpin = page.getByRole('alert');
} }