Align server visual acceptance with canonical editor routes and canvas onboarding
creative workspace review checks / verify (pull_request) Has been cancelled
creative workspace review checks / verify (push) Has been cancelled

This commit is contained in:
2026-10-30 14:16:14 +08:00
parent eed5d43e21
commit 924724c5e4
4 changed files with 11 additions and 9 deletions
@@ -9,9 +9,10 @@ const fs=require('node:fs/promises');
try{
const context=await browser.newContext({viewport:{width:1600,height:1100},storageState:process.env.STORAGE_STATE||undefined});
const page=await context.newPage(),errors=[];page.on('pageerror',e=>errors.push(e.message));
await page.goto(base+'/studio/infinite_canvas');
assert.equal(new URL(page.url()).pathname,'/studio/infinite_canvas','Login required; authenticate without weakening protection');
await page.goto(base+'/infinite_canvas');
assert.equal(new URL(page.url()).pathname,'/infinite_canvas','Login required; authenticate without weakening protection');
await page.getByRole('heading',{name:'无限画布 / Infinite canvas'}).waitFor();
await page.getByRole('button',{name:'从示例开始 ↗',exact:true}).click();
// A fresh context is used so this test cannot overwrite a human browser draft.
const snapshot=()=>page.evaluate(()=>JSON.parse(localStorage.getItem('studio.infinite-canvas.v1')));
const node=id=>page.locator(`[data-node-id="${id}"]`);