openvibers/openvibe.live Commits

Browser smoke: the guest /broadcast gate check ignores session plumbing (a guest's POST /api/auth/refresh) and analytics beacons when it looks for writes; only the page acting counts. Full smoke (signed in with a local token, and as a guest) passes against a scratch server

OP OpenVibers committed 24 Sept 2026 · 411fa858c2 · 1 file, +3 −1


Changes

ddiff --git a/test/browser/smoke.js b/test/browser/smoke.js
iindex 1afc49a6..433682d5 100644
---- a/test/browser/smoke.js
++++ b/test/browser/smoke.js
@@@ -199,7 +199,9 @@ const pageState = `(() => ({
if (!ONLY_SIGNED && !ROUTES_ONLY) {
const { cdp, errors } = await openPage(412);
const writes = [];
-- cdp.on('Network.requestWillBeSent', (p) => { if (p.request.method !== 'GET' && p.request.method !== 'HEAD' && p.request.url.includes('/api/')) writes.push(`${p.request.method} ${p.request.url.replace(BASE, '')}`); });
++ // Session plumbing (a guest's token refresh) and analytics beacons are not the page acting.
++ const plumbing = /\/api\/(auth\/|analytics)/;
++ cdp.on('Network.requestWillBeSent', (p) => { if (p.request.method !== 'GET' && p.request.method !== 'HEAD' && p.request.url.includes('/api/') && !plumbing.test(p.request.url)) writes.push(`${p.request.method} ${p.request.url.replace(BASE, '')}`); });
for (const mode of ['direct', 'spa']) {
errors.length = 0;
writes.length = 0;