evOo-local/apps/web/e2e/avatar-studio.spec.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

28 lines
1.3 KiB
TypeScript

import { expect, test } from "@playwright/test";
import { captureScreenshot, completeOnboarding, signup } from "./helpers";
test("bot settings open Avatar Studio on the Bot tab", async ({ page }, testInfo) => {
const stamp = Date.now();
await signup(page, `avatar-studio-${stamp}@rakazo.test`, "password12", "Avatar Studio");
await completeOnboarding(page);
await page.goto("/app");
await page.waitForURL(/\/app\/[^/]+$/);
await page.getByTestId("bot-settings-trigger").click();
const settings = page.getByTestId("bot-settings");
await expect(settings).toBeVisible();
await settings.getByTestId("avatar-studio-trigger").click();
const studio = page.getByTestId("avatar-studio");
await expect(studio).toBeVisible();
await expect(studio.getByText("Avatar Studio", { exact: true })).toBeVisible();
await expect(studio.getByRole("button", { name: "Bot", exact: true })).toBeVisible();
await expect(studio.getByRole("button", { name: "Upload", exact: true })).toBeVisible();
await expect(studio.getByRole("button", { name: "Generate" })).toHaveCount(0);
await expect(studio.getByTestId("avatar-studio-bot-tab")).toBeVisible();
await expect(studio.getByText("Shape", { exact: true })).toBeVisible();
await expect(studio.getByText("Color", { exact: true })).toBeVisible();
await captureScreenshot(page, testInfo, "avatar-studio-bot-tab");
});