Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Dec 27, 2024
1 parent 23747bc commit 7c3487c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/tests/e2e/process.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ test("can view banner and return to top after scrolling to the bottom", async ({
).toBeInViewport();
});

test("can view the API milestone on GitHub", async ({ page }) => {
test("can view the 'Search interface launch'", async ({ page }) => {
await page
.getByRole("link", { name: "View the API milestone on GitHub" })
.getByRole("link", { name: "Try the new simpler search" })
.click();

await expect(page).toHaveURL(
/https:\/\/github.com\/HHS\/simpler-grants-gov\/issues\/70/,
/search/,
);
});

test("can view the search milestone on GitHub", async ({ page }) => {
test("can view the 'get involved' link", async ({ page }) => {
await page
.getByRole("link", { name: "View the search milestone on GitHub" })
.getByRole("link", { name: "Get involved in our open-source community" })
.click();

await expect(page).toHaveURL(
/https:\/\/github.com\/HHS\/simpler-grants-gov\/issues\/89/,
await expect(page).toHaveTitle(
/Process | Simpler.Grants.gov/,
);
});

0 comments on commit 7c3487c

Please sign in to comment.