Skip to content

Commit

Permalink
Updated e2e tests because of text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-aitken committed Sep 13, 2023
1 parent 6b47148 commit 5a93aa6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ test("Create an account", async ({ page }) => {
await page.getByLabel("Project name").type("Test Project");
await page.getByRole("button", { name: "Create" }).click();

await expect(page.locator("h1").filter({ hasText: /^Jobs$/ })).toBeVisible();
await expect(
page.locator("h1").filter({ hasText: /^Choose a framework to get started/ })
).toBeVisible();
});

test("Verify jobs from the test nextjs project", async ({ page }) => {
Expand All @@ -26,7 +28,9 @@ test("Verify jobs from the test nextjs project", async ({ page }) => {
await page.getByRole("button", { name: "Send a magic link" }).click();

await page.getByRole("link", { name: /Test Project/ }).click();
await expect(page.locator("h1").filter({ hasText: /^Jobs$/ })).toBeVisible();
await expect(
page.locator("h1").filter({ hasText: /^Choose a framework to get started/ })
).toBeVisible();

await page.getByRole("link", { name: "Environments & API Keys" }).click();
await expect(page.locator("h1").filter({ hasText: "Environments & API Keys" })).toBeVisible();
Expand Down

0 comments on commit 5a93aa6

Please sign in to comment.