test: mission link carries the token in the hash (#ph=), not the query

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-19 18:02:09 -05:00
parent fd72ea1b84
commit b32adb2f75
+1 -1
View File
@@ -41,7 +41,7 @@ const sleep = ms => new Promise(r => setTimeout(r, ms));
// start: token + url // start: token + url
const st = await call('/api/my/start', { method: 'POST', body: JSON.stringify({ missionId: 'test-1' }) }); const st = await call('/api/my/start', { method: 'POST', body: JSON.stringify({ missionId: 'test-1' }) });
eq([st.status, /[?&]ph=[a-f0-9]{32}/.test(st.body.url)], [200, true], 'start issues a token on the mission link'); eq([st.status, /#ph=[a-f0-9]{32}$/.test(st.body.url)], [200, true], 'start issues a token on the mission link');
const t = st.body.token; const t = st.body.token;
// the embed's locks // the embed's locks