feat(web): close remaining editor, layout and persistence gaps
- Area headers get a per-area editor switcher backed by a shared AreaEditorContext; Preferences can hide it. - Animation camera area is a real navigable viewport aligned to the scene camera; Graph Editor adds channel selection, keyframe drag/ insert/delete and interpolation. - Geometry Nodes node locations round-trip through the native writer and reader, so saved graphs keep their layout. - Texture Paint can make linked library images local via a new native makeImageLocal command before packing strokes. - Compositor IMAGE and Render Layers nodes now persist to Main and execute against packed images / the last PBR render. - Spreadsheet row cap raised to 250k; Outliner gains Ctrl+A and arrow/ Home/End navigation. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -90,6 +90,34 @@ test("Texture Paint paints a local image, commits one stroke and undoes it", asy
|
||||
expect(undone?.[2]).toBe(before?.[2]);
|
||||
});
|
||||
|
||||
test("Texture Paint makes a linked library image local before painting", async ({ page }) => {
|
||||
test.setTimeout(300_000);
|
||||
await openStudioAndMonkey(page);
|
||||
await clickWorkspace(page, "Shading");
|
||||
await page.locator(".pbr-asset-library").waitFor({ timeout: 60_000 });
|
||||
await page.locator('select[aria-label="资产来源"]').selectOption("library:re-pbr-v1");
|
||||
await expect.poll(async () => page.locator('[data-library="library:re-pbr-v1"]').count(), { timeout: 60_000 }).toBe(6);
|
||||
await page.locator('[data-library="library:re-pbr-v1"]', { hasText: "black_tiles_wall" }).first().dblclick();
|
||||
await expect.poll(async () => page.locator('select[aria-label^="材质槽"]').first().inputValue(), { timeout: 120_000 }).toContain("material:black_tiles_wall");
|
||||
await clickWorkspace(page, "Texture Paint");
|
||||
const view = page.locator(".texture-paint-view");
|
||||
await view.waitFor({ timeout: 60_000 });
|
||||
const imageSelect = view.getByLabel("纹理图像");
|
||||
await expect.poll(async () => (await imageSelect.locator("option").allTextContents()).some((text) => text.includes("black_tiles_wall")), { timeout: 60_000 }).toBe(true);
|
||||
await imageSelect.selectOption({ label: (await imageSelect.locator("option").allTextContents()).find((text) => text.includes("black_tiles_wall"))! });
|
||||
await view.getByRole("button", { name: "设为本地图像", exact: true }).evaluate((element) => (element as HTMLElement).click());
|
||||
await expect.poll(async () => view.locator(".texture-paint-last-action").innerText(), { timeout: 60_000 }).toContain("已设为本地");
|
||||
const canvas = view.getByTestId("texture-paint-canvas");
|
||||
await canvas.waitFor({ timeout: 60_000 });
|
||||
const box = await canvas.boundingBox();
|
||||
if (!box) throw new Error("texture paint canvas has no box");
|
||||
await page.mouse.move(box.x + box.width * 0.4, box.y + box.height * 0.5);
|
||||
await page.mouse.down();
|
||||
await page.mouse.move(box.x + box.width * 0.6, box.y + box.height * 0.55, { steps: 12 });
|
||||
await page.mouse.up();
|
||||
await expect.poll(async () => view.getAttribute("data-last-action"), { timeout: 60_000 }).toBe("笔画已提交");
|
||||
});
|
||||
|
||||
test("Texture Paint stroke survives an OPFS save and reopen", async ({ page }) => {
|
||||
test.setTimeout(360_000);
|
||||
await openStudioAndMonkey(page);
|
||||
|
||||
Reference in New Issue
Block a user