$ cd apps/admin && pnpm build >/dev/null 2>&1 && ZOEN_EVIDENCE_TASK=WEB-215 pnpm exec playwright test tests/e2e/world.spec.ts --workers=1 --reporter=line
# cwd /Users/king/Desktop/Workspace/SRO/zoen
# exit 1
Running 21 tests using 1 worker
[1/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as owner
[2/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as developer
[3/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as qa
[4/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as gm
[5/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as moderator
[6/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as support
[7/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as marketing
[8/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as analyst
[9/21] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as read_only
[10/21] [desktop] › tests/e2e/world.spec.ts:9:3 › world & economy › @world channels, world events and the economy (analyst)
1) [desktop] › tests/e2e/world.spec.ts:9:3 › world & economy › @world channels, world events and the economy (analyst)
Error: locator.click: Error: strict mode violation: getByRole('link', { name: 'Economy' }) resolved to 3 elements:
1) … aka getByRole('link', { name: 'World & economy demo' })
2) World & economy aka getByRole('link', { name: 'World & economy', exact: true })
3) Economy aka getByRole('link', { name: 'Economy', exact: true })
Call log:
- waiting for getByRole('link', { name: 'Economy' })
17 | await expect(page.getByText('Where players are')).toBeVisible();
18 | await evidence(page, info, 'world');
> 19 | await page.getByRole('link', { name: 'Economy' }).click();
| ^
20 | await expect(page.getByText('Gold created')).toBeVisible();
21 | await expect(page.getByRole('region', { name: 'Daily (Zoe)' }).getByText(/Tempering Cinder Shard/)).toBeVisible();
22 | });
at /Users/king/Desktop/Workspace/SRO/zoen/apps/admin/tests/e2e/world.spec.ts:19:55
Error Context: ../../logs/evidence/pw-artifacts/admin/world-world-economy-world--6b01e-ts-and-the-economy-analyst--desktop/error-context.md
attachment #2: trace (application/zip) ─────────────────────────────────────────────────────────
../../logs/evidence/pw-artifacts/admin/world-world-economy-world--6b01e-ts-and-the-economy-analyst--desktop/trace.zip
Usage:
pnpm exec playwright show-trace ../../logs/evidence/pw-artifacts/admin/world-world-economy-world--6b01e-ts-and-the-economy-analyst--desktop/trace.zip
────────────────────────────────────────────────────────────────────────────────────────────────
[11/21] [desktop] › tests/e2e/world.spec.ts:24:3 › world & economy › @world the drop calculator reproduces the data examples
[12/21] [desktop] › tests/e2e/world.spec.ts:43:3 › world & economy › @world support cannot open it
[13/21] [desktop] › tests/e2e/world.spec.ts:50:3 › world & economy › @world every tab is clean on every screen size
[14/21] [tablet] › tests/e2e/world.spec.ts:9:3 › world & economy › @world channels, world events and the economy (analyst)
[15/21] [tablet] › tests/e2e/world.spec.ts:24:3 › world & economy › @world the drop calculator reproduces the data examples
[16/21] [tablet] › tests/e2e/world.spec.ts:43:3 › world & economy › @world support cannot open it
[17/21] [tablet] › tests/e2e/world.spec.ts:50:3 › world & economy › @world every tab is clean on every screen size
2) [tablet] › tests/e2e/world.spec.ts:50:3 › world & economy › @world every tab is clean on every screen size
Error: horizontal overflow on http://127.0.0.1:4351/world/economy
expect(received).toBeLessThanOrEqual(expected)
Expected: <= 1
Received: 26
at helpers.ts:33
31 | export async function expectNoHorizontalOverflow(page: Page) {
32 | const over = await page.evaluate(() => document.documentElement.scrollWidth - window.innerWidth);
> 33 | expect(over, `horizontal overflow on ${page.url()}`).toBeLessThanOrEqual(1);
| ^
34 | }
35 |
36 | /** WCAG 2.2 AA via axe: no serious or critical violations on the current page. */
at expectNoHorizontalOverflow (/Users/king/Desktop/Workspace/SRO/zoen/apps/admin/tests/e2e/helpers.ts:33:56)
at /Users/king/Desktop/Workspace/SRO/zoen/apps/admin/tests/e2e/world.spec.ts:56:7
Error Context: ../../logs/evidence/pw-artifacts/admin/world-world-economy-world--ef240--clean-on-every-screen-size-tablet/error-context.md
attachment #2: trace (application/zip) ─────────────────────────────────────────────────────────
../../logs/evidence/pw-artifacts/admin/world-world-economy-world--ef240--clean-on-every-screen-size-tablet/trace.zip
Usage:
pnpm exec playwright show-trace ../../logs/evidence/pw-artifacts/admin/world-world-economy-world--ef240--clean-on-every-screen-size-tablet/trace.zip
────────────────────────────────────────────────────────────────────────────────────────────────
[18/21] [mobile] › tests/e2e/world.spec.ts:9:3 › world & economy › @world channels, world events and the economy (analyst)
[19/21] [mobile] › tests/e2e/world.spec.ts:24:3 › world & economy › @world the drop calculator reproduces the data examples
[20/21] [mobile] › tests/e2e/world.spec.ts:43:3 › world & economy › @world support cannot open it
[21/21] [mobile] › tests/e2e/world.spec.ts:50:3 › world & economy › @world every tab is clean on every screen size
2 failed
[desktop] › tests/e2e/world.spec.ts:9:3 › world & economy › @world channels, world events and the economy (analyst)
[tablet] › tests/e2e/world.spec.ts:50:3 › world & economy › @world every tab is clean on every screen size
6 skipped
13 passed (16.4s)