Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(view): local-origin keeps its no-exception guard [N26,H5,C7]

Corey Olson25e74542222b
diff --git a/test/cockpit/local-origin.test.js b/test/cockpit/local-origin.test.js
index 09feadf4..b3d5a63f 100644
--- a/test/cockpit/local-origin.test.js
+++ b/test/cockpit/local-origin.test.js
@@ -239,6 +239,7 @@ test('a pullboard.dev page reads the local board [N26,A2]', { timeout: 120_000 }
assert.ok(metadata.length > 0, 'the signed-in page checked its linked-board metadata');
assert.ok(metadata.every((entry) => !Object.keys(entry.headers).some((name) => name.toLowerCase() === 'x-pullboard-key')), 'same-origin metadata never gets the local secret header');
assert.equal(await chrome.stable('readOnly'), false, 'the local board remains writable');
+ assert.deepEqual(chrome.exceptions, [], 'Chrome reports no uncaught exceptions');
// A local read that fails once, as while the view restarts or is busy, is no reason to load the relay module
// either: this person's linked list is empty, so the page reads the view again instead (#748).
const { identifier: failOnce } = await chrome.send('Page.addScriptToEvaluateOnNewDocument', { source: `(() => {
@@ -259,6 +260,7 @@ test('a pullboard.dev page reads the local board [N26,A2]', { timeout: 120_000 }
await chrome.send('Page.removeScriptToEvaluateOnNewDocument', { identifier: failOnce });
assert.equal(relayModule(), modulesBefore, 'a failed local read on a local-only signed-in page does not request the relay module');
assert.equal(await chrome.stable('transportModule'), null, 'and the relay transport stays unloaded');
+ assert.deepEqual(chrome.exceptions, [], 'the failed read is handled: Chrome reports no uncaught exceptions');
} finally {
try { if (stopStandIn) await stopStandIn(); }
finally {