diff --git a/tests/live-browser-source.test.mjs b/tests/live-browser-source.test.mjs index 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(