diff --git a/src/features/delay-js.feature b/src/features/delay-js.feature index 941c59c..95ba3f4 100644 --- a/src/features/delay-js.feature +++ b/src/features/delay-js.feature @@ -27,7 +27,7 @@ Feature: No Regression with delayjs script udpate And visit page '' in mobile view And expand mobile menu And I click on link - Then page navigated to the new page 'https://e2e.rocketlabsqa.ovh/about-us' + Then page navigated to the new page 'about-us' Scenario: Shouldn't cause console error when enabling Delay JS with WPML When I go to 'wp-admin/plugins.php' diff --git a/src/support/steps/general.ts b/src/support/steps/general.ts index 89fd6e4..9e2955d 100644 --- a/src/support/steps/general.ts +++ b/src/support/steps/general.ts @@ -314,7 +314,8 @@ const getConsoleMsg = async (page: Page, url: string): Promise> => /** * Executes the step to assert that page navigation. */ -Then('page navigated to the new page {string}', async function (this: ICustomWorld, url) { +Then('page navigated to the new page {string}', async function (this: ICustomWorld, path) { + const url = `${WP_BASE_URL}/${path}`; const regex = new RegExp(url); await expect(this.page).toHaveURL(regex); }); \ No newline at end of file