feat: redesign team creation flow to match onboarding-v3 design (#26733)
* feat: redesign team creation flow to match onboarding-v3 design Co-Authored-By: [email protected] <[email protected]> * feat: skip invite options and go directly to email invite step Co-Authored-By: [email protected] <[email protected]> * feat: invalidate teams query on submit to refresh teams list Co-Authored-By: [email protected] <[email protected]> * fix: use server action to invalidate server-side teams cache Co-Authored-By: [email protected] <[email protected]> * fix: conditionally render avatar in browser view to remove extra padding Co-Authored-By: [email protected] <[email protected]> * fix browser view * test: update team creation E2E tests to use new onboarding-v3 flow Co-Authored-By: [email protected] <[email protected]> * test: update auth-index.e2e.ts to use new team creation flow Co-Authored-By: [email protected] <[email protected]> * test: update team-management.e2e.ts to use new team creation flow Co-Authored-By: [email protected] <[email protected]> * fix: add error handling for createTeam and improve CSV parsing for quoted fields Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
13 files changed
+997
-139
No files matched your search
@@ -26,16 +26,18 @@ test.describe("Can signup from a team invite", async () => {
|
||||
await page.goto("/settings/teams/new");
|
||||
await page.waitForLoadState("networkidle");
|
||||
|
||||
// Create a new team
|
||||
await page.locator('input[name="name"]').fill(teamName);
|
||||
await page.locator('input[name="slug"]').fill(teamName);
|
||||
// Create a new team (new onboarding-v3 style flow)
|
||||
await page.locator('[data-testid="team-name-input"]').fill(teamName);
|
||||
await page.locator('button[type="submit"]').click();
|
||||
|
||||
// Add new member to team
|
||||
await page.click('[data-testid="new-member-button"]');
|
||||
await page.fill('input[id="inviteUser"]', testUser.email);
|
||||
// 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);
|
||||
const submitPromise = page.waitForResponse("/api/trpc/teams/inviteMember?batch=1");
|
||||
await page.getByTestId("invite-new-member-button").click();
|
||||
await page.locator('button[type="submit"]').click();
|
||||
const response = await submitPromise;
|
||||
expect(response.status()).toBe(200);
|
||||
|
||||
|
||||
Reference in new issue
Block a user