From db55d5cf7d438dbf69287aaf7da4bf0b6bff59aa Mon Sep 17 00:00:00 2001 From: JennyNou Date: Wed, 18 Mar 2026 10:37:28 -0400 Subject: [PATCH] Update continue button locator to be more specific --- playwright-tests/pages/BasePage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright-tests/pages/BasePage.ts b/playwright-tests/pages/BasePage.ts index cdd6725d..6e0d2ece 100644 --- a/playwright-tests/pages/BasePage.ts +++ b/playwright-tests/pages/BasePage.ts @@ -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'); }