feat(ui): redesign grouped application shell

This commit is contained in:
cesnimda
2026-09-28 17:26:02 +02:00
parent 57a6bd02c6
commit 8e56ceabf5
30 changed files with 398 additions and 92 deletions
+1 -5
View File
@@ -5,11 +5,7 @@ const apiUrl = "http://localhost:5302/api";
test("CSV export has safe cells and headers, and browser download preserves its UTF-8 bytes", async ({ page }) => {
await page.addInitScript(() => window.localStorage.setItem("uiLanguage", "en"));
await page.goto("/login");
await page.getByLabel("Username or email", { exact: true }).fill("e2e@example.test");
await page.getByLabel("Current password", { exact: true }).fill("E2ePassword123!");
await page.getByRole("button", { name: "Sign in", exact: true }).click();
await expect(page).toHaveURL(/\/dashboard$/);
expect((await page.request.post(`${apiUrl}/auth/login`, { data: { email: "e2e@example.test", password: "E2ePassword123!" } })).status()).toBe(200);
const me = await (await page.request.get(`${apiUrl}/auth/me`)).json();
const csrf = (await page.context().cookies()).find(cookie => cookie.name === "XSRF-TOKEN")!.value;
const headers = { "X-CSRF-TOKEN": csrf, "X-Session-Context": me.sessionContext };