fix(ci): complete deferred script loading before brand assertions
creative workspace review checks / verify-deployed-canvas (pull_request) Successful in 55s
creative workspace review checks / verify (pull_request) Successful in 26m46s

This commit is contained in:
2026-11-01 17:02:38 +08:00
parent f4397db869
commit 5c068ace81
3 changed files with 31 additions and 13 deletions
@@ -16,13 +16,15 @@ test('one proxy failure can recover within the original deadline', async () => {
}, '/canvas', () => elapsed);
assert.deepEqual(timeouts, [60000, 45000]);
});
test('connection reset can recover once', async () => {
let calls = 0;
await navigateBrandDocument(async () => {
if (++calls === 1) throw new Error('net::ERR_CONNECTION_RESET');
return response(200);
}, '/canvas');
assert.equal(calls, 2);
test('connection reset and interrupted bootstrap scripts can recover once', async () => {
for(const failure of ['net::ERR_CONNECTION_RESET','Document bootstrap script request failed: net::ERR_ABORTED']){
let calls = 0;
await navigateBrandDocument(async () => {
if (++calls === 1) throw new Error(failure);
return response(200);
}, '/canvas');
assert.equal(calls, 2);
}
});
test('persistent server failure is not hidden', async () => {
let calls = 0;