Release Label Tools 0.2.0
Verify / verify (push) Canceled after 0s

This commit is contained in:
2026-09-02 11:52:44 +02:00
parent 4e3df8d4a4
commit d3e43bea98
37 changed files with 1733 additions and 119 deletions
+4 -4
View File
@@ -60,17 +60,17 @@ test("merges inert CSV and exports vector SVG and deterministic ZIP", async ({
"merge-report.json",
]);
expect(JSON.parse(strFromU8(files["merge-report.json"]!))).toMatchObject({
application: "Label Tools 0.1.0",
application: "Label Tools 0.2.0",
labels: 2,
});
});
test("exports a local PDF with an explicit raster boundary", async ({
test("exports a local vector PDF with an explicit font boundary", async ({
page,
}) => {
await page.goto("/deep/nested/label/");
const pending = page.waitForEvent("download", { timeout: 120_000 });
await page.getByRole("button", { name: "PDF (144 DPI)" }).click();
await page.getByRole("button", { name: "Vector PDF" }).click();
const download = await pending;
expect(download.suggestedFilename()).toBe("label-tools-merge.pdf");
const bytes = await readFile((await download.path())!);
@@ -107,7 +107,7 @@ test("integrates help, dark theme, PWA identity and hardened headers", async ({
const manifest = await request.get("/deep/nested/label/toolbox-app.json");
await expect(manifest.json()).resolves.toMatchObject({
id: "de.add-ideas.label-tools",
version: "0.1.0",
version: "0.2.0",
privacy: { processing: "local", telemetry: false },
});
});
+18
View File
@@ -0,0 +1,18 @@
import { expect, test } from "@playwright/test";
test("keeps the primary workspace inside a narrow viewport", async ({
page,
}) => {
await page.goto("/deep/nested/label/");
await expect(page.locator("main").first()).toBeVisible();
await expect(
page.locator("main .loading, main .workbench-loading"),
).toHaveCount(0);
const widths = await page.evaluate(() => ({
content: document.documentElement.scrollWidth,
viewport: document.documentElement.clientWidth,
}));
expect(widths.viewport).toBeLessThanOrEqual(430);
expect(widths.content).toBeLessThanOrEqual(widths.viewport + 1);
});