Wallet-link nudges on for PolyBreak, SpellWheel, PolyWarriors (Marty 2026-10-25; they were push-only); QA walk: signed-out support tickets are members-only (962cdf0), non-member refused 403

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-25 05:33:43 -05:00
parent a4642341aa
commit cecba6b313
2 changed files with 11 additions and 7 deletions
+7 -3
View File
@@ -246,7 +246,8 @@ if (MODE === 'member' || MODE === 'all') {
if (/QA internal note/.test(th)) note('bug', L + 'my#help', 'INTERNAL NOTE LEAKED to the member');
flush(bag, L + 'my#help (reply seen)'); console.log('ok member sees reply, no internal note');
}
// public /support (signed out): the form, the guard, the private ticket link
// public /support (signed out): the form, the guard, the private ticket link. Members only since 2026-10-24 (962cdf0):
// a signed-out ticket needs an email that has an account (qa-walk@example.com signed up above); others get a 403
{
const pctx = await browser.newContext({ viewport: { width: 390, height: 844 }, isMobile: true });
await pctx.addInitScript(() => { try { sessionStorage.setItem('iap.welcome.v1', '1'); } catch (e) {} });
@@ -255,7 +256,7 @@ if (MODE === 'member' || MODE === 'all') {
await domChecks(pp, L + '/support');
if (!(await pp.$('#supForm'))) note('bug', L + '/support', 'form did not render');
else {
await pp.fill('#supName', 'QA Visitor'); await pp.fill('#supEmail', 'qa-visitor@example.com');
await pp.fill('#supName', 'QA Visitor'); await pp.fill('#supEmail', 'qa-walk@example.com');
await pp.fill('#supSubject', 'QA: cannot sign in'); await pp.fill('#supBody', 'The sign-in code never arrives. QA walk.');
await pp.click('#supSend'); await pp.waitForTimeout(3500);
const tl = await pp.$eval('#supMain a.btn[href^="/support/t/"]', e => e.getAttribute('href')).catch(() => '');
@@ -268,7 +269,10 @@ if (MODE === 'member' || MODE === 'all') {
const bad = await pp.request.get(LOCAL + '/api/support/t/' + tl.split('/').pop().slice(0, -4) + 'AAAA');
if (bad.status() !== 404) note('bug', L + '/support/t', 'a tampered token was accepted: ' + bad.status());
}
const bot = await pp.request.post(LOCAL + '/api/support', { data: { email: 'qa-bot@example.com', subject: 'x bot', body: 'bot body here', fts: Date.now(), fage: 10 } });
const nm = await pp.request.post(LOCAL + '/api/support', { data: { email: 'qa-visitor@example.com', name: 'QA', subject: 'QA: not a member', category: 'Other', body: 'Not a member, should be refused.', fage: 9000 } });
const nmj = await nm.json().catch(() => ({}));
if (nm.status() !== 403 || !nmj.membersOnly) note('bug', L + '/api/support', 'a non-member email was not refused (members-only): ' + nm.status());
const bot = await pp.request.post(LOCAL + '/api/support', { data: { email: 'qa-walk@example.com', subject: 'x bot', body: 'bot body here', fts: Date.now(), fage: 10 } });
if (bot.status() !== 400) note('bug', L + '/api/support', 'instant (form-age 10ms) post was not refused: ' + bot.status());
}
await pp.screenshot({ path: OUT + '/support-public.png' }).catch(() => {});