harness: read the timeout message later in the pre-arrival window

This commit is contained in:
Meta Vens 2026-10-31 18:44:39 +01:00
commit c91d0339b5

View file

@ -67,9 +67,9 @@ const HEADERS = ['GameCult', 'Projects', 'nibu', 'eureka', 'Nibu', 'Eureka', 'El
const loc = await reveal(`[aria-label="Join ${name}"]`);
if (!(await loc.count())) { tl.push(`no Join ${name}`); return; }
await loc.first().click(); tl.push(`CLICK Join ${name} ${t()}`);
await pg.waitForTimeout(21500); await snap(`5-slow-${name.replace(/\W/g, '')}-21s`);
await pg.waitForTimeout(22800); await snap(`5-slow-${name.replace(/\W/g, '')}-21s`);
tl.push(`timeout msg shown: ${(await text()).includes('still on its way')}`);
await pg.waitForTimeout(5500); await snap(`5-slow-${name.replace(/\W/g, '')}-27s`);
await pg.waitForTimeout(5000); await snap(`5-slow-${name.replace(/\W/g, '')}-27s`);
tl.push(`after arrival: Join ${name} still present=${await pg.locator(`[aria-label="Join ${name}"]`).count()} url=${pg.url()}`);
};
await slow('Odin');