/** * E2E: Complete onboarding flow end-to-end. */ import { expect, test } from "@playwright/test"; import { captureScreenshot, completeOnboarding, signup } from "./helpers"; test.describe.configure({ mode: "serial" }); test("complete onboarding flow to chat", async ({ page }) => { const testInfo = test.info(); const stamp = Date.now(); await signup(page, `onboard-${stamp}@rakazo.test`, "password12", "Onboard"); await completeOnboarding(page); await expect(page.getByText("Chief").first()).toBeVisible(); await expect(page.getByRole("combobox", { name: "Message" })).toBeVisible(); await captureScreenshot(page, testInfo, "onboard-complete"); }); test("onboarding with avatar customization step shown", async ({ page }) => { const testInfo = test.info(); const stamp = Date.now(); await signup(page, `avatar-${stamp}@rakazo.test`, "password12", "Avatar"); await completeOnboarding(page); await expect(page.getByText("Chief").first()).toBeVisible(); await captureScreenshot(page, testInfo, "avatar-complete"); });