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: reload hosted pairing documents [N26,H5]

Corey Olson2581b85a667d
diff --git a/test/cockpit/relay.test.js b/test/cockpit/relay.test.js
index c7bfb2ef..34e32a71 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.
+ 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);
// 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' });
await chrome.send('Page.navigate', { url: JOURNEY_HOSTED + '/' });
await chrome.waitFor("[...document.querySelectorAll('#proj-list .proj.repo')].some(row => row.textContent.includes('fixture/repository')) && [...document.querySelectorAll('#proj-list .proj.repo')].some(row => row.textContent.includes('local-machine-b')) && [...document.querySelectorAll('#proj-list .proj.repo')].some(row => row.textContent.includes('local-machine-c'))");
const localList = await (await fetchLive(localView.base + '/api/v1/boards', { headers: { 'x-pullboard-key': localView.key } })).json();