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

This commit is contained in:
2026-09-02 08:04:49 +02:00
parent 754608e52b
commit 0c47ec5105
30 changed files with 587 additions and 94 deletions
+3 -3
View File
@@ -36,10 +36,10 @@ test("validates and traces a supplied local JSON Schema reference", async ({
}) => {
const external = await localOnly(page);
await page.goto("/deep/nested/schema/");
await page.getByRole("tab", { name: "Validate" }).click();
await page.getByRole("button", { name: "Validate" }).click();
await page.getByRole("button", { name: "Validate instance" }).click();
await expect(page.getByText(/Instance is valid/u)).toBeVisible();
await page.getByRole("tab", { name: "References" }).click();
await page.getByRole("button", { name: "References" }).click();
await expect(
page.getByText("address.schema.json#/$defs/address", { exact: true }),
).toBeVisible();
@@ -70,7 +70,7 @@ test("serves release identity and hardened headers", async ({ request }) => {
const manifest = await request.get("/deep/nested/schema/toolbox-app.json");
await expect(manifest.json()).resolves.toMatchObject({
id: "de.add-ideas.schema-tools",
version: "0.1.2",
version: "0.2.0",
entry: "./",
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/schema/");
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);
});