harness: read the timeout message later in the pre-arrival window
This commit is contained in:
parent
bfb753e3e5
commit
c91d0339b5
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue