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

This commit is contained in:
2026-09-02 05:05:59 +02:00
parent 3c82e7a305
commit 5e462f881d
30 changed files with 1830 additions and 110 deletions
+60 -1
View File
@@ -43,6 +43,65 @@ test("converts a negative nanosecond epoch exactly", async ({ page }) => {
expect(external).toEqual([]);
});
test("inspects imported recurrence and keeps calendar URLs inert", async ({
page,
}) => {
const external = await localOnly(page);
await page.goto("/deep/nested/time/");
await page.getByRole("button", { name: "iCalendar" }).click();
await page
.getByLabel("Paste iCalendar source")
.fill(
[
"BEGIN:VCALENDAR",
"VERSION:2.0",
"PRODID:-//Browser fixture//EN",
"BEGIN:VEVENT",
"UID:fixture@example",
"DTSTART:20260901T090000Z",
"RRULE:FREQ=DAILY;COUNT=2",
"SUMMARY:Fixture",
"URL:https://example.invalid/never-fetch",
"END:VEVENT",
"END:VCALENDAR",
].join("\r\n"),
);
await page
.getByRole("button", { name: "Validate and inspect calendar" })
.click();
await expect(
page.getByRole("heading", { name: "iCalendar inspection" }),
).toBeVisible();
await expect(page.locator(".result > pre")).toContainText('"inert": true');
await expect(page.locator(".result > pre")).toContainText('"occurrences": [');
expect(external).toEqual([]);
});
test("plans cross-zone meetings and previews an explicit cron dialect", async ({
page,
}) => {
await page.goto("/deep/nested/time/");
await page.getByRole("button", { name: "Meeting planner" }).click();
await page.getByLabel("Search from instant").fill("2026-09-01T00:00:00Z");
await page
.getByRole("button", { name: "Find shared work-hour slots" })
.click();
await expect(
page.getByRole("heading", { name: "Meeting candidates" }),
).toBeVisible();
await expect(page.locator(".result > pre")).toContainText("Europe/Berlin");
await expect(page.locator(".result > pre")).toContainText("America/New_York");
await page.getByRole("button", { name: "Cron & RRULE" }).click();
await page.getByLabel("Cron dialect").selectOption("github-actions");
await page.getByLabel("Time zone").fill("UTC");
await page.getByRole("button", { name: "Preview cron" }).click();
await expect(page.locator(".result > pre")).toContainText("github-actions");
await expect(page.locator(".result > pre")).toContainText(
"normalizedPattern",
);
});
test("serves the release identity and hardened headers", async ({
request,
}) => {
@@ -55,7 +114,7 @@ test("serves the release identity and hardened headers", async ({
const manifest = await request.get("/deep/nested/time/toolbox-app.json");
await expect(manifest.json()).resolves.toMatchObject({
id: "de.add-ideas.time-tools",
version: "0.1.0",
version: "0.2.0",
entry: "./",
});
});