Updated e2e tests because of text changes

This commit is contained in:
Matt Aitken
2023-09-13 13:29:56 +01:00
parent 6b471489b0
commit 5a93aa6fa1
+6 -2
View File
@@ -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 }) => {
@@ -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();