HEL-774: record supplemental check exit and support a focused cleanup recheck
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -11,7 +11,7 @@ async function settled(p){await p.evaluate(async()=>{await document.fonts.ready;
|
||||
try{
|
||||
const proj=(await api('/api/projects')).find(x=>x.title==='隔离验证 · 海岸来信');const path='/api/workbench/projects/'+proj.id+'/stages/storyboard';
|
||||
await api(path+'/confirm',{});const stage=(await api('/api/workbench/projects/'+proj.id)).stages.find(s=>s.stage_key==='storyboard');await api(path,{content:{...stage.content,shots:stage.content.shots.map((s,i)=>i?s:{...s,description:'稳定态对比用实际草稿'})}},'PATCH');
|
||||
const sizes=process.env.HEL774_BEFORE==='1'?[[1440,900]]:[[1440,900],[1366,768],[1280,720]],themes=process.env.HEL774_BEFORE==='1'?['night']:['night','day','grade','bluehour'];
|
||||
const sizes=(process.env.HEL774_BEFORE==='1'||process.env.HEL774_QUICK==='1')?[[1440,900]]:[[1440,900],[1366,768],[1280,720]],themes=(process.env.HEL774_BEFORE==='1'||process.env.HEL774_QUICK==='1')?['night']:['night','day','grade','bluehour'];
|
||||
for(const [width,height] of sizes)for(const theme of themes){
|
||||
const name=theme+'-'+width;await p.setViewportSize({width,height});await sp.setViewportSize({width,height});await p.goto(WEB);await p.evaluate(t=>localStorage.setItem('aigc-theme',t),theme);await p.goto(WEB+'/workbench/'+proj.id+'?stage=storyboard');await p.locator('.storyboard-card').first().waitFor();await settled(p);
|
||||
// Modal: stable background and finished animation; close by Escape and check exact invoker.
|
||||
@@ -41,5 +41,5 @@ async function settled(p){await p.evaluate(async()=>{await document.fonts.ready;
|
||||
ok('actual confirm clickable with toast and advances only explicitly',(await api('/api/workbench/projects/'+proj.id)).stages.find(s=>s.stage_key==='storyboard').status==='confirmed');await p.screenshot({path:out+'/confirm-click-result.png'});
|
||||
}
|
||||
|
||||
}finally{fs.writeFileSync(out+(process.env.HEL774_BEFORE==='1'?'/before.json':'/results.json'),JSON.stringify({records,checks},null,2));await c.tracing.stop({path:out+'/trace.zip'});await b.close();await new Promise(r=>sample.close(r))}
|
||||
}finally{fs.writeFileSync(out+(process.env.HEL774_BEFORE==='1'?'/before.json':process.env.HEL774_QUICK==='1'?'/quick-results.json':'/results.json'),JSON.stringify({records,checks},null,2));await c.tracing.stop({path:out+(process.env.HEL774_QUICK==='1'?'/quick-trace.zip':'/trace.zip')});await b.close();await new Promise(r=>sample.close(r))}
|
||||
})().catch(e=>{console.error(e);process.exitCode=1});
|
||||
|
||||
@@ -42,6 +42,7 @@ try:
|
||||
api(f"/api/workbench/projects/{proj['id']}/stages/{stage}/confirm",({'chosen_style_id':'s1'} if stage=='style' else {}))
|
||||
print('stack ready, project',proj['id'])
|
||||
result=subprocess.run(['node',os.environ.get('HEL774_SCRIPT','e2e/hel774.cjs')],env=env)
|
||||
print('TEST_PROCESS_EXIT',result.returncode,flush=True)
|
||||
raise SystemExit(result.returncode)
|
||||
finally:
|
||||
for p in processes:
|
||||
|
||||
Reference in New Issue
Block a user