boot check: the portfolio with a Play page 404 counts no live version

This commit is contained in:
CRTkafa 2026-11-08 03:25:13 +07:00
parent f34192b546
commit ec381e8664

View file

@ -622,9 +622,10 @@ async function runReleaseStateCase(browser: Browser, sidecar: Sidecar, page404:
const wizard = page.locator('.wizard[role="dialog"]');
if (await wizard.count()) { await wizard.press('Escape').catch(() => {}); await gone(page, '.wizard[role="dialog"]'); }
// the portfolio: Play's cell names the state, never "Live" while the page is 404
await shows(page, '#content', page404 ? SENT : '1.0.0');
// (the overview counts it with the reviews; its own words are on Releases, checked below)
await shows(page, '#content', '1.0.0');
const pf = await text();
if (page404 && !pf.includes(SENT)) problems.push(`Portfolio: no "${SENT}"`);
if (page404 && !pf.includes('Live versions 0')) problems.push('Portfolio: Play counted as live while its store page is 404');
await crashCheck('Portfolio');
visited++;
const item = page.locator('nav.side .nav-app').filter({ hasText: /Prism Puddle|demo-game/ }).first();