Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmcadam committed Aug 5, 2024
1 parent 3f24b76 commit 177a61b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/visitor-completes-quiz.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,23 @@ test("visitor accepted for treatment", async ({ page }) => {
name: /which image best matches your hair loss/i,
}),
).toBeVisible();

await page
.getByRole("button", { name: /temples/i })
.first()
.click();

await expect(
page.getByRole("heading", {
name: /which image best matches your hair loss/i,
}),
).toBeVisible();
await page.getByRole("button", { name: /no/i }).click();

await expect(
page.getByRole("heading", {
name: /breast cancer/i,
}),
).toBeVisible();
await page.getByRole("button", { name: /no/i }).click();

await expect(
Expand Down

0 comments on commit 177a61b

Please sign in to comment.