* Pull updates from evOo instead of the upstream Rakazo repository The in-app server updater, the image-based compose files and the desktop auto-updater still pointed at elie222/rakazo, so updating an evOo install would have pulled Rakazo. They now follow cynarAI/evOo-local, where the publish workflow already pushes the images. The disabled Rakazo production deploy job is gone from CI; evo deploys itself. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Call the product evOo everywhere people see its name The desktop setup window and menu, account emails, the iOS app name and permission prompts, sign-in headings, messages bots post into connected chat apps, the web fetch user agent, issue templates and the marketing site still said Rakazo, or EvOo. They now say evOo. The marketing site no longer calls evOo an alternative to itself. Internal identifiers (package scopes, env vars, bundle ids, the desktop productName that keys its data folder and keychain entry) stay as they are. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Open conversation actions by holding a row on a phone Pin, move to folder, mark unread, duplicate, archive and delete only opened on right-click, which iOS Safari never fires. Holding a conversation or a folder header now dispatches the same contextmenu event, so the existing menu opens under the finger; Android's own long-press event is not doubled and the lift does not also open the conversation. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Give small chrome icons a 44px touch area on phones The browser and computer toggles, the activity bell, the create button and the section plus buttons were 18 to 36 px targets. On touch screens each now gets an invisible 44px hit area without changing how it looks; the create button uses the same plus icon as the rest of the sidebar instead of a text glyph, and the computer toggle gets an accessible name. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Add German to the mobile app German speakers saw the phone app in English because the mobile UI only knew English, Simplified Chinese, and Russian. The app now ships a German catalog covering every mobile chrome string, follows a German device language (de, de-DE, de-AT, de-CH, ...), and offers Deutsch in the Account language picker. Strings that also exist in the web German catalog reuse its wording so web and phone say the same thing; the rest follow the same terms and the informal "du". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Use the evOo sign-in strings in the German phone catalog Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Make account deletion work and give settings one section style Deleting an account posted to the auth endpoint without a JSON content type, so the server refused it and the button did nothing. The privacy page now deletes through the auth client and returns to sign-in. It also drops the claims it could not verify, the export button that only showed an alert, and its own padding, and shows where the data and the computer live. Notifications and media settings use the same SettingsSection. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Use status tokens, the shared switch and one German glossary Voice stage dots, the onboarding progress bar and the Voice First button used raw emerald, violet, cyan and rose; they now use foreground, success and destructive like the rest of the app. The routine editor's hand-built switch is the shared Switch. German says Unterhaltung for threads and Space consistently on web and phone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Expect the evOo setup copy in the desktop e2e specs Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Translate the voice preview label in the German phone catalog Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Wait for the main thread URL without waiting for every resource openMainBotThread already navigated with domcontentloaded; its URL check then waited for the full load event, which can exceed 20 s on a busy runner. The composer check that follows covers readiness. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ --------- Co-authored-by: Claude <noreply@anthropic.com>
228 lines
10 KiB
TypeScript
228 lines
10 KiB
TypeScript
import { expect, test } from "@playwright/test";
|
|
import { captureScreenshot, completeOnboarding, signup } from "./helpers";
|
|
|
|
test("restricted signup waits for mailbox verification", async ({ page }, testInfo) => {
|
|
await page.route("**/api/auth/get-session**", (route) => route.fulfill({ json: null }));
|
|
await page.route("**/api/auth/capabilities", (route) =>
|
|
route.fulfill({
|
|
json: { passwordReset: false, resetUrl: null },
|
|
}),
|
|
);
|
|
await page.route("**/api/auth/sign-up/email", (route) =>
|
|
route.fulfill({
|
|
json: { token: null, user: { id: "pending-user", emailVerified: false } },
|
|
}),
|
|
);
|
|
await page.goto("/sign-up");
|
|
await page.getByLabel("Name").fill("Pending User");
|
|
await page.getByLabel("Email").fill("pending@example.test");
|
|
await page.getByLabel("Password", { exact: true }).fill("password12");
|
|
await page.getByRole("button", { name: "Create account", exact: true }).click();
|
|
await expect(page.getByRole("heading", { name: "Check your email" })).toBeVisible();
|
|
await expect(page).toHaveURL(/\/sign-up\?verify=email$/);
|
|
await page.reload();
|
|
await expect(page.getByRole("heading", { name: "Check your email" })).toBeVisible();
|
|
await captureScreenshot(page, testInfo, "signup-verification-required");
|
|
await page.getByRole("link", { name: "Back to sign in" }).click();
|
|
await expect(page.getByRole("heading", { name: "Sign in to evOo" })).toBeVisible();
|
|
});
|
|
|
|
test("logout protects bot deep links and sign-in restores the session", async ({
|
|
page,
|
|
}, testInfo) => {
|
|
const stamp = Date.now();
|
|
const email = `auth-lifecycle-${stamp}@rakazo.test`;
|
|
const password = "password12";
|
|
const userName = "Auth Lifecycle";
|
|
|
|
await page.goto("/sign-up");
|
|
await expect(page.getByLabel("Name")).toHaveAttribute("autocomplete", "name");
|
|
await expect(page.getByLabel("Email")).toHaveAttribute("autocomplete", "username");
|
|
await expect(page.getByLabel("Password", { exact: true })).toHaveAttribute(
|
|
"autocomplete",
|
|
"new-password",
|
|
);
|
|
|
|
await signup(page, email, password, userName);
|
|
await completeOnboarding(page);
|
|
|
|
await page.waitForURL(/\/app\/[^/]+$/);
|
|
const protectedBotPath = new URL(page.url()).pathname;
|
|
await expect(page.getByRole("combobox", { name: "Message" })).toBeVisible();
|
|
|
|
await page.getByRole("button", { name: new RegExp(userName, "i") }).click();
|
|
await expect(page.getByRole("button", { name: "Settings", exact: true })).toBeVisible();
|
|
await expect(page.getByRole("button", { name: "Usage", exact: true })).toBeVisible();
|
|
await expect(page.getByRole("button", { name: "Log out" })).toBeVisible();
|
|
await expect(
|
|
page
|
|
.locator('[data-slot="popover-content"]')
|
|
.getByRole("button", { name: "Models", exact: true }),
|
|
).toHaveCount(0);
|
|
await expect(
|
|
page
|
|
.locator('[data-slot="popover-content"]')
|
|
.getByRole("button", { name: "Memory", exact: true }),
|
|
).toHaveCount(0);
|
|
await expect(
|
|
page
|
|
.locator('[data-slot="popover-content"]')
|
|
.getByRole("button", { name: "Voice", exact: true }),
|
|
).toHaveCount(0);
|
|
await captureScreenshot(page, testInfo, "36-account-menu");
|
|
|
|
await page.getByRole("button", { name: "Log out" }).click();
|
|
await expect(page.getByRole("heading", { name: "Sign in to evOo" })).toBeVisible();
|
|
await page.goto("/");
|
|
await expect(page.locator('[data-rakazo-surface="welcome"]')).toBeVisible();
|
|
await expect(page.getByText("Your specialists. One calm place to talk.")).toBeVisible();
|
|
await page.getByRole("button", { name: /Sign up/ }).click();
|
|
await expect(page).toHaveURL(/\/sign-up$/);
|
|
await expect(page.getByRole("heading", { name: "Create your evOo" })).toBeVisible();
|
|
await page.goto("/");
|
|
await captureScreenshot(page, testInfo, "37-logged-out-welcome");
|
|
|
|
await page.goto(protectedBotPath);
|
|
await page.waitForURL((url) => url.pathname === "/sign-in");
|
|
await expect(page.getByRole("heading", { name: "Sign in to evOo" })).toBeVisible();
|
|
await expect(page.getByText("Chief", { exact: true })).toHaveCount(0);
|
|
await expect(page.getByText(userName, { exact: true })).toHaveCount(0);
|
|
await expect(page.getByLabel("Email")).toHaveAttribute("autocomplete", "username");
|
|
await expect(page.getByLabel("Password", { exact: true })).toHaveAttribute(
|
|
"autocomplete",
|
|
"current-password",
|
|
);
|
|
await captureScreenshot(page, testInfo, "38-protected-deep-link-sign-in");
|
|
|
|
await page.getByPlaceholder("Your email address").fill(email);
|
|
await page.getByPlaceholder("Password").fill("wrong-password12");
|
|
await page.getByRole("button", { name: "Continue with email" }).click();
|
|
await expect(
|
|
page
|
|
.locator("form")
|
|
.getByText(/invalid email or password|invalid credentials|incorrect password/i),
|
|
).toBeVisible();
|
|
await expect(page).toHaveURL(/\/sign-in$/);
|
|
await captureScreenshot(page, testInfo, "39-invalid-credentials");
|
|
|
|
await page.getByPlaceholder("Password").fill(password);
|
|
await page.getByRole("button", { name: "Continue with email" }).click();
|
|
await page.waitForURL((url) => url.pathname === protectedBotPath, {
|
|
timeout: 20_000,
|
|
});
|
|
const composer = page.getByRole("combobox", { name: "Message" });
|
|
await expect(composer).toHaveAttribute("name", "chat-message");
|
|
await expect(composer).toHaveAttribute("autocomplete", "off");
|
|
await expect(composer).toHaveAttribute("aria-label", "Message");
|
|
await expect(page.getByRole("button", { name: new RegExp(userName, "i") })).toBeVisible();
|
|
|
|
await composer.fill("line one");
|
|
const heightBeforeNewline = await composer.evaluate((el) => el.getBoundingClientRect().height);
|
|
await composer.press("Shift+Enter");
|
|
await composer.type("line two");
|
|
await expect(composer).toHaveValue("line one\nline two");
|
|
const heightWithNewline = await composer.evaluate((el) => el.getBoundingClientRect().height);
|
|
expect(heightWithNewline).toBeGreaterThan(heightBeforeNewline);
|
|
|
|
await composer.press("Enter");
|
|
const multilineMessage = page
|
|
.getByTestId("transcript")
|
|
.getByText("line one\nline two", { exact: true });
|
|
await expect(multilineMessage).toBeVisible();
|
|
await expect(multilineMessage).toHaveCSS("white-space", "pre-wrap");
|
|
|
|
const message = "Fake composer regression check.";
|
|
await composer.fill(message);
|
|
await captureScreenshot(page, testInfo, "40-restored-auth-session");
|
|
await composer.press("Enter");
|
|
await expect(composer).toHaveValue("");
|
|
// Scope to the transcript: the sidebar activity row can echo the same text.
|
|
await expect(page.getByTestId("transcript").getByText(message, { exact: true })).toBeVisible();
|
|
});
|
|
|
|
test("changes and recovers an email password", async ({ page }, testInfo) => {
|
|
const stamp = Date.now();
|
|
const email = `password-recovery-${stamp}@rakazo.test`;
|
|
const originalPassword = "password12";
|
|
const changedPassword = "changed-password12";
|
|
const resetPassword = "reset-password12";
|
|
const userName = "Password Recovery";
|
|
|
|
await signup(page, email, originalPassword, userName);
|
|
await completeOnboarding(page);
|
|
await page.waitForURL(/\/app\/[^/]+$/);
|
|
|
|
await page.getByTestId("user-menu-trigger").click();
|
|
await page.getByRole("button", { name: "Settings", exact: true }).click();
|
|
const settings = page.getByTestId("user-settings");
|
|
await expect(settings).toBeVisible();
|
|
await expect(page.getByTestId("sidebar-search").locator("input")).toHaveAttribute(
|
|
"autocomplete",
|
|
"off",
|
|
);
|
|
await expect(page.getByTestId("sidebar-search").locator("input")).toHaveAttribute(
|
|
"name",
|
|
"sidebar-search",
|
|
);
|
|
await expect(settings.locator('input[name="username"]')).toHaveAttribute(
|
|
"autocomplete",
|
|
"username",
|
|
);
|
|
await expect(settings.locator('input[name="username"]')).toHaveValue(email);
|
|
await expect(settings.getByLabel("Current password")).toHaveAttribute(
|
|
"autocomplete",
|
|
"current-password",
|
|
);
|
|
await expect(settings.getByLabel("New password")).toHaveAttribute("autocomplete", "new-password");
|
|
await expect(settings.getByLabel("Confirm password")).toHaveAttribute(
|
|
"autocomplete",
|
|
"new-password",
|
|
);
|
|
await settings.getByLabel("Current password").fill(originalPassword);
|
|
await settings.getByLabel("New password").fill(changedPassword);
|
|
await settings.getByLabel("Confirm password").fill(changedPassword);
|
|
await settings.getByRole("button", { name: "Change password" }).click();
|
|
await expect(settings.getByText("Password updated")).toBeVisible();
|
|
await captureScreenshot(page, testInfo, "41-password-changed");
|
|
await settings.getByRole("button", { name: "Close user settings" }).click();
|
|
|
|
await page.getByRole("button", { name: new RegExp(userName, "i") }).click();
|
|
await page.getByRole("button", { name: "Log out" }).click();
|
|
await expect(page.getByRole("link", { name: "Forgot password?" })).toBeVisible();
|
|
await page.getByRole("link", { name: "Forgot password?" }).click();
|
|
await expect(page.getByRole("heading", { name: "Reset your password" })).toBeVisible();
|
|
await page.getByLabel("Email").fill(email);
|
|
await expect(page.getByLabel("Email")).toHaveValue(email);
|
|
await page.getByRole("button", { name: "Send reset link" }).click();
|
|
await expect(page.getByRole("heading", { name: "Check your email" })).toBeVisible();
|
|
await expect(page.getByRole("heading", { name: "Reset your password" })).not.toBeVisible();
|
|
await captureScreenshot(page, testInfo, "42-password-reset-requested");
|
|
|
|
const emailApi = process.env.API_URL ?? "http://127.0.0.1:3110";
|
|
await expect
|
|
.poll(async () => {
|
|
const response = await page.request.get(`${emailApi}/__e2e/emails`);
|
|
return ((await response.json()) as unknown[]).length;
|
|
})
|
|
.toBeGreaterThan(0);
|
|
const messagesResponse = await page.request.get(`${emailApi}/__e2e/emails`);
|
|
expect(messagesResponse.headers()["cache-control"]).toBe("no-store");
|
|
const messages = (await messagesResponse.json()) as Array<{
|
|
text: string;
|
|
}>;
|
|
const resetUrl = messages.at(-1)?.text.match(/https?:\/\/\S+/)?.[0];
|
|
expect(resetUrl).toBeTruthy();
|
|
|
|
await page.goto(resetUrl!);
|
|
await expect(page.getByRole("heading", { name: "Choose a new password" })).toBeVisible();
|
|
await page.getByLabel("New password").fill(resetPassword);
|
|
await page.getByLabel("Confirm password").fill(resetPassword);
|
|
await page.getByRole("button", { name: "Reset password" }).click();
|
|
await expect(page.getByText("Password updated")).toBeVisible();
|
|
await page.getByRole("link", { name: "Sign in" }).click();
|
|
await page.getByLabel("Email").fill(email);
|
|
await page.getByLabel("Password", { exact: true }).fill(resetPassword);
|
|
await page.getByRole("button", { name: "Continue with email" }).click();
|
|
await page.waitForURL(/\/app(?:\/|$)/);
|
|
});
|