Skip to content

Commit

Permalink
Merge pull request #99 from alphagov/autocomplete-agnostic-search-test
Browse files Browse the repository at this point in the history
Homepage search test compatible with autocomplete
  • Loading branch information
kevindew authored Dec 12, 2024
2 parents 18fa95e + a075fa2 commit 4c036b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/finder-frontend.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test.describe("Finder frontend", { tag: ["@app-finder-frontend"] }, () => {
test("Can use site search and receive results", async ({ page }) => {
await page.goto("/");
const searchBox = page.getByRole("search");
await searchBox.getByRole("searchbox", { name: "Search" }).fill("Universal Credit");
await searchBox.getByLabel("Search").fill("Universal Credit");
await searchBox.getByRole("button", { name: "Search" }).click();
await expect(page.getByRole("link", { name: "Sign in to your Universal Credit account" })).toBeVisible();
});
Expand Down

0 comments on commit 4c036b5

Please sign in to comment.