Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Nov 26, 2024
1 parent 4d1422b commit ceec646
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/tests/ui-driven/src/create-flow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ test.describe("Flow creation, publish and preview", () => {
await editor.createResult();
await editor.createNextSteps();
await editor.createReview();
await editor.createConfirmation();
await editor.createFeedback();
await editor.createConfirmation();

await expect(editor.nodeList).toContainText([
"Is this a test?",
Expand All @@ -92,8 +92,8 @@ test.describe("Flow creation, publish and preview", () => {
"Planning permission", // default result flag
"Next steps",
"Check your answers before sending your application",
"Confirmation",
"Tell us what you think",
"Confirmation",
]);
});

Expand Down Expand Up @@ -293,11 +293,11 @@ test.describe("Flow creation, publish and preview", () => {
await clickContinue({ page });

await expect(
page.locator("h1", { hasText: "Application sent" }),
page.locator("h1", { hasText: "Tell us what you think" }),
).toBeVisible();
await clickContinue({ page });
await expect(
page.locator("h1", { hasText: "Tell us what you think" }),
page.locator("h1", { hasText: "Application sent" }),
).toBeVisible();
});
});

0 comments on commit ceec646

Please sign in to comment.