Skip to content

Commit

Permalink
fix for checking home page
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielClarkeEducation committed Dec 6, 2024
1 parent 58a06d0 commit a1694e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test.describe("A spec used to test the main back button route through the journe
expect(page.url()).toContain("/questions/where-was-the-qualification-awarded");
await page.locator("#back-button").click();

expect(page.url()).toBe("/");
expect(page.url()).toBe(process.env.WEBAPP_URL + "/");
});

test.describe("back buttons should all navigate to the appropriate pages in the main journey", async () => {
Expand All @@ -98,13 +98,13 @@ test.describe("A spec used to test the main back button route through the journe
test("the back button on the accessibility statement page navigates back to the home page", async ({ page, context }) => {
await page.goto("/accessibility-statement");
await page.locator("#back-button").click();
expect(page.url()).toBe("/");
expect(page.url()).toBe(process.env.WEBAPP_URL + "/");
});

test("the back button on the cookies preference page navigates back to the home page", async ({ page, context }) => {
await page.goto("/cookies");
await page.locator("#back-button").click();
expect(page.url()).toBe("/");
expect(page.url()).toBe(process.env.WEBAPP_URL + "/");
});
});
});

0 comments on commit a1694e5

Please sign in to comment.