Release Binary Tools 0.1.0

This commit is contained in:
2026-09-01 13:04:49 +02:00
commit 60768466c1
59 changed files with 10424 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
import { expect, test } from "@playwright/test";
for (const path of ["/", "/deep/nested/binary/"]) {
test(`runs locally at ${path}`, async ({ page }) => {
const external: string[] = [];
page.on("request", (request) => {
if (!request.url().startsWith("http://127.0.0.1:4181"))
external.push(request.url());
});
await page.goto(path);
await expect(
page.getByRole("heading", { name: "Understand what the bytes say." }),
).toBeVisible();
await page.getByLabel("Encoded input").fill("Ada");
await page.getByRole("button", { name: "Apply input" }).click();
await expect(page.getByLabel("hex output")).toHaveValue("416461");
expect(external).toEqual([]);
});
}
test("keeps the installed application available offline", async ({
page,
context,
}) => {
await page.goto("/");
await page.evaluate(async () => navigator.serviceWorker.ready);
await page.reload();
await context.setOffline(true);
try {
await page.reload();
await expect(
page.getByRole("heading", { name: "Understand what the bytes say." }),
).toBeVisible();
} finally {
await context.setOffline(false);
}
});