Update continue button locator to be more specific

This commit is contained in:
JennyNou 2026-03-18 10:37:28 -04:00
parent b1bea6a0e8
commit db55d5cf7d

View file

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