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: await real paired board transport [N26,H5]

Corey Olson9918aa7759ff
diff --git a/test/cockpit/relay.test.js b/test/cockpit/relay.test.js
index 34e32a71..83a4296c 100644
--- a/test/cockpit/relay.test.js
+++ b/test/cockpit/relay.test.js
@@ -1068,10 +1068,13 @@ test('the hosted page lists linked and local boards together [N26,H5]', {
await chrome.waitFor('location.hash === ""', 10_000);
// C's real local board is also paired on the relay so this catches duplicate-ID source preference.
- // The client consumes pairing fragments only while a document boots, so force a new document before the second key.
+ // Start a fresh hosted document before pairing C, then wait for transport work rather than assuming C is selected.
await chrome.send('Page.navigate', { url: 'about:blank' });
await chrome.send('Page.navigate', { url: JOURNEY_HOSTED + '/#board=' + localRelay.board + '&key=' + encodeURIComponent(localRelayKey) });
- await chrome.waitFor("document.querySelector('#chain')?.textContent.includes(" + JSON.stringify(duplicateTitle) + ')', 30_000);
+ await chrome.waitFor('location.hash === "" && !!JSON.parse(localStorage.getItem("pullboard.relay.keys.v1") || "{}")[' + JSON.stringify(localRelay.board) + ']', 30_000);
+ assert.ok(linked.calls.some(call => call.method === 'GET'
+ && call.path === '/api/v1/boards/' + localRelay.board + '/state' && call.browser),
+ 'C’s private pairing key was consumed and its real snapshot was read by the authenticated browser');
// The hosted page's real local-view handoff discovers B without a pasted key, URL or port.
await chrome.send('Page.navigate', { url: 'about:blank' });