From 98ec9400ee21133e6146b0b12d95fcb77cc27178 Mon Sep 17 00:00:00 2001 From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:16:26 +0100 Subject: [PATCH] Remove assertion from helper --- e2e/tests/ui-driven/src/create-flow/create-flow.spec.ts | 3 +++ e2e/tests/ui-driven/src/helpers/userActions.ts | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/tests/ui-driven/src/create-flow/create-flow.spec.ts b/e2e/tests/ui-driven/src/create-flow/create-flow.spec.ts index d3eda04740..d505a4a6eb 100644 --- a/e2e/tests/ui-driven/src/create-flow/create-flow.spec.ts +++ b/e2e/tests/ui-driven/src/create-flow/create-flow.spec.ts @@ -260,6 +260,9 @@ test.describe("Flow creation, publish and preview", () => { ).toBeVisible(); await clickContinue({ page }); + await expect( + page.locator("h1", { hasText: "Find the property" }), + ).toBeVisible(); await answerFindProperty(page); await clickContinue({ page }); }); diff --git a/e2e/tests/ui-driven/src/helpers/userActions.ts b/e2e/tests/ui-driven/src/helpers/userActions.ts index 51c7cbe7ca..1f488ec73d 100644 --- a/e2e/tests/ui-driven/src/helpers/userActions.ts +++ b/e2e/tests/ui-driven/src/helpers/userActions.ts @@ -196,9 +196,6 @@ export async function submitCardDetails(page: Page) { export async function answerFindProperty(page: Page) { await setupOSMockResponse(page); - await expect( - page.locator("h1", { hasText: "Find the property" }), - ).toBeVisible(); await page.getByLabel("Postcode").fill("SW1 1AA"); await page.getByLabel("Select an address").click(); await page.getByRole("option").first().click();