@@ -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: "./",
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user