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:
+1
-1
@@ -41,7 +41,7 @@ const sleep = ms => new Promise(r => setTimeout(r, ms));
|
||||
|
||||
// start: token + url
|
||||
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;
|
||||
|
||||
// the embed's locks
|
||||
|
||||
Reference in New Issue
Block a user