diff --git a/tests/e2e/utils/frontend/frontend-utils.page.ts b/tests/e2e/utils/frontend/frontend-utils.page.ts index f0ae11cee13..127851a326b 100644 --- a/tests/e2e/utils/frontend/frontend-utils.page.ts +++ b/tests/e2e/utils/frontend/frontend-utils.page.ts @@ -126,7 +126,9 @@ export class FrontendUtils { async isLoggedIn() { await this.gotoMyAccount(); - await expect( this.page ).toHaveTitle( /My account/ ); + await expect( this.page ).toHaveTitle( + /My Account – WooCommerce Blocks E2E Test Suite/ + ); const loginForm = this.page.locator( 'form.woocommerce-form-login' ); return ! loginForm; @@ -134,7 +136,9 @@ export class FrontendUtils { async login() { await this.gotoMyAccount(); - await expect( this.page ).toHaveTitle( /My account/ ); + await expect( this.page ).toHaveTitle( + /My Account – WooCommerce Blocks E2E Test Suite/ + ); await this.page .locator( 'input[name="username"]' ) .fill( customer.username ); @@ -148,7 +152,9 @@ export class FrontendUtils { async logout() { await this.gotoMyAccount(); - await expect( this.page ).toHaveTitle( /My account/ ); + await expect( this.page ).toHaveTitle( + /My Account – WooCommerce Blocks E2E Test Suite/ + ); await this.page.locator( 'text=Log out' ).click(); } }