Skip to content

Commit

Permalink
fix: remove assertion from e2e helper to fix regression tests (#3705)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion authored Sep 18, 2024
1 parent d261a9b commit b620512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions e2e/tests/ui-driven/src/create-flow/create-flow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
Expand Down
3 changes: 0 additions & 3 deletions e2e/tests/ui-driven/src/helpers/userActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b620512

Please sign in to comment.