Files
workinf_Blender_Wasm/web/tests/e2e/b3-gzip-modern-probe.spec.ts
mes123456 f3e21c6b98
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

26 lines
1.0 KiB
TypeScript

import fs from "node:fs";
import path from "node:path";
import { test } from "@playwright/test";
const root = path.resolve(import.meta.dirname, "../../..");
const cases: Array<[string, string]> = [
["modern-gzip-v300", "blender-5.2.0/tests/files/io_tests/blend_geometry/all_quads.blend"],
["modern-gzip-v300b", "blender-5.2.0/tests/files/io_tests/blend_geometry/fgons.blend"],
];
test("modern gzip blends open", async ({ page }) => {
test.setTimeout(240_000);
const out: Record<string, unknown> = {};
for (const [label, rel] of cases) {
await page.goto("/");
await page.waitForTimeout(10000);
await page.getByTestId("blend-file-input").setInputFiles(path.join(root, rel));
await page.waitForTimeout(25000);
out[label] = await page.evaluate(() => ({
status: document.querySelector('[data-testid="engine-status"]')?.textContent ?? "",
projectId: (document.querySelector("main.blender-app") as HTMLElement | null)?.dataset.projectId ?? "",
}));
}
fs.writeFileSync("/tmp/gzip-modern.json", JSON.stringify(out, null, 2));
});