Revert "feat: redesign team creation flow to match onboarding-v2 design (#26733)"

This reverts commit 37847c0061.
This commit is contained in:
Alex van Andel committed 2026-01-22 11:15:43 -03:00
1 parent 5e8fd13d1f
commit c5fbafd9fb
13 files changed
+139 -997

No files matched your search

+7 -9
View File
@@ -26,18 +26,16 @@ test.describe("Can signup from a team invite", async () => {
await page.goto("/settings/teams/new");
await page.waitForLoadState("networkidle");
// Create a new team (new onboarding-v3 style flow)
await page.locator('[data-testid="team-name-input"]').fill(teamName);
// Create a new team
await page.locator('input[name="name"]').fill(teamName);
await page.locator('input[name="slug"]').fill(teamName);
await page.locator('button[type="submit"]').click();
// Wait for the invite email page
await page.waitForURL(/\/settings\/teams\/new\/invite\/email.*$/i);
await page.waitForLoadState("networkidle");
// Add new member to team via email invite form
await page.locator('input[type="email"]').first().fill(testUser.email);
// Add new member to team
await page.click('[data-testid="new-member-button"]');
await page.fill('input[id="inviteUser"]', testUser.email);
const submitPromise = page.waitForResponse("/api/trpc/teams/inviteMember?batch=1");
await page.locator('button[type="submit"]').click();
await page.getByTestId("invite-new-member-button").click();
const response = await submitPromise;
expect(response.status()).toBe(200);