diff --git a/tests/e2e/pages/hosted-payments-page.ts b/tests/e2e/pages/hosted-payments-page.ts index ffc81bc..4475fc1 100644 --- a/tests/e2e/pages/hosted-payments-page.ts +++ b/tests/e2e/pages/hosted-payments-page.ts @@ -9,7 +9,7 @@ export class HostedPaymentsPage { // Locators mockBank = () => this.page.getByLabel('Mock UK Payments - Redirect Flow', { exact: true }); - continueButton = () => this.page.getByText('Go to bank'); + continueButton = () => this.page.getByTestId('go-to-bank-button'); continueOnDesktopButton = () => this.page.getByText('on this device'); // Methods