fix(web): stabilize Phase 2 E2E (settings i18n, empty project, chart plot load)

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-07 11:23:53 +00:00
parent 04d28aa803
commit 2e4d7d3835
No known key found for this signature in database
3 changed files with 7 additions and 6 deletions

View File

@ -72,7 +72,7 @@ test("chart links retain supported URLs and browser encoding semantics", async (
"java%73cript:void(0)", "java%73cript:void(0)",
]) { ]) {
await page.goto(`${fixture}?${new URLSearchParams({ href })}`); await page.goto(`${fixture}?${new URLSearchParams({ href })}`);
await expect(page.locator("svg circle").first()).toBeVisible({ timeout: 30_000 }); await expect(page.locator("svg circle").first()).toBeVisible({ timeout: 90_000 });
const link = page.locator("svg a").first(); const link = page.locator("svg a").first();
await expect(link).toBeAttached(); await expect(link).toBeAttached();
expect( expect(

View File

@ -7,15 +7,16 @@ test("empty project space offers Start before the main conversation exists", asy
await completeOnboarding(page); await completeOnboarding(page);
const side = await rpc<{ id: string }>(page, "spaces/create", { name: "Empty project" }); const side = await rpc<{ id: string }>(page, "spaces/create", { name: "Empty project" });
await page.evaluate((spaceId) => {
window.localStorage.setItem("rakazo:space-id", spaceId);
}, side.id);
await page.reload({ waitUntil: "domcontentloaded" }); await page.reload({ waitUntil: "domcontentloaded" });
await expect(page.getByTestId("shell-root")).toHaveAttribute("data-ready", "true", { await expect(page.getByTestId("shell-root")).toHaveAttribute("data-ready", "true", {
timeout: 60_000, timeout: 60_000,
}); });
const sidebarStart = page.getByTestId(`project-start-${side.id}`); const projekte = page.locator(".sidebar-projekte");
await expect(projekte.getByText("Empty project", { exact: true })).toBeVisible({
timeout: 30_000,
});
const sidebarStart = projekte.getByTestId(`project-start-${side.id}`);
await expect(sidebarStart).toBeVisible({ timeout: 30_000 }); await expect(sidebarStart).toBeVisible({ timeout: 30_000 });
await expect(sidebarStart).toContainText(/Start|Starten/i); await expect(sidebarStart).toContainText(/Start|Starten/i);
}); });

View File

@ -291,7 +291,7 @@ export async function openUserSettings(
await expect(menuTrigger).toBeVisible({ timeout: 30_000 }); await expect(menuTrigger).toBeVisible({ timeout: 30_000 });
await menuTrigger.scrollIntoViewIfNeeded(); await menuTrigger.scrollIntoViewIfNeeded();
await menuTrigger.click(); await menuTrigger.click();
await page.getByRole("button", { name: "Settings", exact: true }).click(); await page.getByRole("button", { name: /^Settings$|^Einstellungen$/i }).click();
const settings = page.getByTestId("user-settings"); const settings = page.getByTestId("user-settings");
await expect(settings).toBeVisible(); await expect(settings).toBeVisible();
if (section && section !== "general") { if (section && section !== "general") {