diff --git a/playwright-tests/pages/TpaSearchPage.ts b/playwright-tests/pages/TpaSearchPage.ts index 0919f2d8..cdf359e6 100644 --- a/playwright-tests/pages/TpaSearchPage.ts +++ b/playwright-tests/pages/TpaSearchPage.ts @@ -9,7 +9,7 @@ export class TpaSearchPage extends BasePage { constructor(page: Page) { super(page); this.page = page; - this.firstLocationButton = page.locator('div.button-content').first(); + this.firstLocationButton = page.locator('div.button-content').filter({ hasNotText: /safelite/i }).first(); } async selectFirstLocation() {