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): let hosted fixtures pass delta replies [N26,A2]

Corey Olson0364358d5708
diff --git a/test/cockpit/local-origin.test.js b/test/cockpit/local-origin.test.js
index e202923c..b226e8c1 100644
--- a/test/cockpit/local-origin.test.js
+++ b/test/cockpit/local-origin.test.js
@@ -95,7 +95,8 @@ async function hostedStandIn(chrome, pages, styles, local) {
let responseBody = reply.body;
if (asked.method === 'GET' && reply.status === 200 && local.versionOverride && address.pathname.startsWith('/api/v1/boards/') && address.pathname.endsWith('/state')) {
const document = JSON.parse(responseBody);
- document.state.releaseNotes.version = local.versionOverride;
+ if (document.state) document.state.releaseNotes.version = local.versionOverride;
+ else if (document.delta?.replace?.releaseNotes) document.delta.replace.releaseNotes.version = local.versionOverride;
responseBody = JSON.stringify(document);
}
return chrome.send('Fetch.fulfillRequest', {