Update continue button locator to be more specific
This commit is contained in:
parent
b1bea6a0e8
commit
db55d5cf7d
1 changed files with 2 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue