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:
parent
04d28aa803
commit
2e4d7d3835
@ -72,7 +72,7 @@ test("chart links retain supported URLs and browser encoding semantics", async (
|
||||
"java%73cript:void(0)",
|
||||
]) {
|
||||
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();
|
||||
await expect(link).toBeAttached();
|
||||
expect(
|
||||
|
||||
@ -7,15 +7,16 @@ test("empty project space offers Start before the main conversation exists", asy
|
||||
await completeOnboarding(page);
|
||||
|
||||
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 expect(page.getByTestId("shell-root")).toHaveAttribute("data-ready", "true", {
|
||||
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).toContainText(/Start|Starten/i);
|
||||
});
|
||||
|
||||
@ -291,7 +291,7 @@ export async function openUserSettings(
|
||||
await expect(menuTrigger).toBeVisible({ timeout: 30_000 });
|
||||
await menuTrigger.scrollIntoViewIfNeeded();
|
||||
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");
|
||||
await expect(settings).toBeVisible();
|
||||
if (section && section !== "general") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user