Add full source parity validation workflow
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
const basicBlend = path.resolve(import.meta.dirname, "../../../tests/files/web/basic_scene.blend");
|
||||
@@ -19,8 +20,12 @@ test("keeps Main edit and save-reopen available during a Chromium network interr
|
||||
expect(download.suggestedFilename()).toBe("blender-web.blend");
|
||||
const savedPath = await download.path();
|
||||
expect(savedPath).not.toBeNull();
|
||||
await page.setInputFiles("[data-testid=blend-file-input]", savedPath!);
|
||||
await expect(page.getByTestId("engine-status")).toContainText("SceneIR r3 (4 objects)");
|
||||
await page.setInputFiles("[data-testid=blend-file-input]", {
|
||||
name: "network-reopen.blend",
|
||||
mimeType: "application/octet-stream",
|
||||
buffer: fs.readFileSync(savedPath!),
|
||||
});
|
||||
await expect(page.getByTestId("engine-status")).toContainText("SceneIR r1 (4 objects)");
|
||||
await expect(page.getByTestId("scene-stats")).toContainText("Objects 4");
|
||||
}
|
||||
finally {
|
||||
|
||||
Reference in New Issue
Block a user