feat(export): add readable account archive
CI and Deploy / test (pull_request) Successful in 5m13s
CI and Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
cesnimda
2026-08-15 18:36:40 +02:00
parent cdcc7163fa
commit 1ec9dd037e
15 changed files with 864 additions and 35 deletions
+10
View File
@@ -139,6 +139,16 @@ test("a Free account keeps manual work available while AI actions stay honestly
await expect(page.getByRole("button", { name: "Upgrade to Pro" })).toHaveCount(0);
const overflow = await page.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);
expect(overflow).toBeLessThanOrEqual(1);
await page.getByRole("tab", { name: "Backup" }).click();
await expect(page.getByText(/requires a sign-in from the last 15 minutes/i)).toBeVisible();
const exportResponsePromise = page.waitForResponse((response) => response.url().endsWith("/api/export/account") && response.request().method() === "POST");
await page.getByRole("button", { name: "Download readable account export" }).click();
const exportResponse = await exportResponsePromise;
expect(exportResponse.status()).toBe(200);
expect(exportResponse.headers()["content-type"]).toContain("application/zip");
expect((await exportResponse.body()).subarray(0, 2).toString()).toBe("PK");
await expect(page.getByText(/Readable account export downloaded/i)).toBeVisible();
});
test("a saved job can be created through the reviewed UI flow", async ({ page }) => {