The design language that makes your AI harness better at design.
JavaScript
Pin the token expression in the manual-edit-stash source assertion
Paul Bakaus60c860f022c4
diff --git a/tests/live-browser-source.test.mjs b/tests/live-browser-source.test.mjsindex 0f031bc86..af03f023d 100644--- a/tests/live-browser-source.test.mjs+++ b/tests/live-browser-source.test.mjs@@ -42,7 +42,7 @@ describe('live-browser source contracts', () => {);assert.match(SOURCE,- /fetch\('http:\/\/localhost:' \+ PORT \+ '\/manual-edit-stash\?token='[\s\S]{0,300}?pageUrl: location\.pathname[\s\S]{0,80}?element: extractContext\(contextElement\)[\s\S]{0,40}?ops,/,+ /fetch\('http:\/\/localhost:' \+ PORT \+ '\/manual-edit-stash\?token=' \+ encodeURIComponent\(TOKEN\)[\s\S]{0,300}?pageUrl: location\.pathname[\s\S]{0,80}?element: extractContext\(contextElement\)[\s\S]{0,40}?ops,/,'Save should stage edits through /manual-edit-stash with element context and ops',);assert.match(