fix(ui): wait for rendered browser state during CI navigation
Endoleap brand checks / verify (pull_request) Successful in 6s
creative workspace review checks / verify (pull_request) Successful in 26m0s

This commit is contained in:
2026-11-01 03:09:33 +08:00
parent 628449735b
commit 2a324c4d19
5 changed files with 24 additions and 14 deletions
@@ -23,6 +23,13 @@ import {verifyFlatNoteMigration} from './flat-note-migration';
import {staticEntries} from '../src/lib/explore';
import {publishLearningSeries} from '../src/lib/publish-learning-series';
// Browser acceptance gets its own deadline; it must not consume the existing business-flow budget.
test('Endoleap icons, persisted themes and artwork isolation in the real browser', {timeout:300000,skip:!process.env.PROMPT_TEST_BASE_URL}, async()=>{
assert.equal(process.env.PROMPT_INTEGRATION_TEST,'1');
const base=process.env.PROMPT_TEST_BASE_URL;assert.ok(base);
await verifyBrandUI(base);
});
test('real PostgreSQL + S3 notes, flat tags, resource sharing and video processing', {timeout:600000}, async()=>{
assert.equal(process.env.PROMPT_INTEGRATION_TEST,'1','Run only against an explicitly isolated test database');
const socket=createServer();socket.listen(0,'127.0.0.1');await once(socket,'listening');const address=socket.address();assert.ok(address&&typeof address!=='string');const port=address.port;await new Promise<void>(r=>socket.close(()=>r()));
@@ -34,7 +41,7 @@ test('real PostgreSQL + S3 notes, flat tags, resource sharing and video processi
try{
let ready=false;for(let i=0;i<60;i++){try{if((await fetch(base+'/api/health')).ok){ready=true;break;}}catch{}await setTimeout(250);}assert.ok(ready);
for(const route of ['/','/images','/videos','/audio','/articles','/motion','/library/import','/tools/doodle','/tools/skills','/tools/skills/street-people','/tools/skills/shadow-puppet'])assert.equal((await fetch(base+route)).status,200,route);
await verifyBrandUI(base);
if(!external)await verifyBrandUI(base);
await verifyEmailAccounts();
await verifyCanvasWorkspace(base);
if(process.env.VERIFY_CANVAS_UI==='1')await verifyCanvasAgentUI(base);