Release 3D Tools v0.1.0

This commit is contained in:
2026-09-01 14:22:42 +02:00
commit b20c67c890
58 changed files with 10820 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
import { expect, test } from "@playwright/test";
for (const path of ["/", "/deep/nested/3d/"]) {
test("inspects and transforms locally at " + path, async ({ page }) => {
const external: string[] = [];
page.on("request", (request) => {
if (!request.url().startsWith("http://127.0.0.1:4211"))
external.push(request.url());
});
await page.goto(path);
await expect(
page.getByRole("heading", {
name: "Inspect geometry without uploading it.",
}),
).toBeVisible();
await expect(page.getByText("4", { exact: true }).first()).toBeVisible();
await page.getByRole("button", { name: "Recalculate normals" }).click();
await expect(page.getByText(/vertex normals recalculated/u)).toBeVisible();
await expect(page.locator("canvas")).toBeVisible();
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: "Inspect geometry without uploading it.",
}),
).toBeVisible();
} finally {
await context.setOffline(false);
}
});