Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(e2e): follow the redesigned signup and onboarding flow

Tinb8df2aa47503
diff --git a/tests/e2e/smoke.spec.ts b/tests/e2e/smoke.spec.ts
index 28c1d4d4d..82d4b7baf 100644
--- a/tests/e2e/smoke.spec.ts
+++ b/tests/e2e/smoke.spec.ts
@@ -11,17 +11,32 @@ test("sign up, create a workspace with a starter project, and sign in again", as
const workspaceName = `Browser test ${suffix.slice(0, 8)}`;
await page.goto("/auth/sign-up");
- await page.getByLabel("Full Name", { exact: true }).fill("Browser Tester");
+ await page.getByLabel("Name", { exact: true }).fill("Browser Tester");
await page.getByLabel("Email", { exact: true }).fill(email);
await page.locator('input[name="password"]').fill(password);
await page
- .getByRole("button", { name: "Create Account", exact: true })
+ .getByRole("button", { name: "Create account", exact: true })
.click();
await expect(page).toHaveURL(/\/onboarding$/);
await page.getByLabel("Workspace name", { exact: true }).fill(workspaceName);
+ await page.getByRole("button", { name: "Continue", exact: true }).click();
+ await expect(
+ page.getByRole("heading", { name: "Who's it for?", exact: true }),
+ ).toBeVisible();
+ await page.getByRole("button", { name: "Continue", exact: true }).click();
+ await expect(page.getByLabel("Project name", { exact: true })).toHaveValue(
+ "My first project",
+ );
+ await page.getByRole("button", { name: "Continue", exact: true }).click();
+ await expect(
+ page.getByRole("heading", {
+ name: `${workspaceName} is ready`,
+ exact: true,
+ }),
+ ).toBeVisible();
await page
- .getByRole("button", { name: "Create workspace", exact: true })
+ .getByRole("button", { name: `Open ${workspaceName}`, exact: true })
.click();
await expect(page).toHaveURL(
/\/dashboard\/workspace\/[^/]+\/project\/[^/]+\/board$/,
@@ -46,7 +61,7 @@ test("sign up, create a workspace with a starter project, and sign in again", as
await expect(page).toHaveURL(/\/auth\/sign-in/);
await page.getByLabel("Email", { exact: true }).fill(email);
await page.locator('input[name="password"]').fill(password);
- await page.getByRole("button", { name: "Sign In", exact: true }).click();
+ await page.getByRole("button", { name: "Sign in", exact: true }).click();
await expect(page).toHaveURL(boardUrl);
await expect(
page.getByText(workspaceName, { exact: true }).first(),