feat(ui): redesign grouped application shell
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user