Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
fix page reset test by selecting first
Browse files Browse the repository at this point in the history
  • Loading branch information
rylew1 committed Jun 3, 2024
1 parent 3a4b71f commit b6e1e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/tests/e2e/search/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ test.describe("Search page tests", () => {
await clickPaginationPageNumber(page, 2);

// Verify that page 1 is highlighted
let currentPageButton = page.locator(".usa-pagination__button.usa-current");
let currentPageButton = page.locator(".usa-pagination__button.usa-current").first();
await expect(currentPageButton).toHaveAttribute("aria-label", "Page 2");

// Select the 'Closed' checkbox under 'Opportunity status'
Expand All @@ -217,6 +217,7 @@ test.describe("Search page tests", () => {
expectURLContainsQueryParam(page, "page", "1", false);
});


test("last result becomes first result when flipping sort order", async ({
page,
}: PageProps) => {
Expand Down

0 comments on commit b6e1e6d

Please sign in to comment.