$ cd apps/admin && pnpm build >/dev/null 2>&1 && ZOEN_EVIDENCE_TASK=WEB-210 pnpm exec playwright test tests/e2e/production.spec.ts --workers=1 --reporter=line
# cwd /Users/king/Desktop/Workspace/SRO/zoen
# exit 1
Running 18 tests using 1 worker
[1/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as owner
[2/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as developer
[3/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as qa
[4/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as gm
[5/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as moderator
[6/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as support
[7/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as marketing
[8/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as analyst
[9/18] [setup] › tests/e2e/auth.setup.ts:14:3 › sign in as read_only
[10/18] [desktop] › tests/e2e/production.spec.ts:8:3 › production › @production overview, tabs and wiki links read the repository
1) [desktop] › tests/e2e/production.spec.ts:8:3 › production › @production overview, tabs and wiki links read the repository
Error: locator.fill: Error: strict mode violation: getByLabel('Search tasks') resolved to 2 elements:
1) aka getByRole('textbox', { name: 'Search tasks' })
2)
…
aka getByRole('region', { name: 'Search tasks' })
Call log:
- waiting for getByLabel('Search tasks')
26 |
27 | await page.getByRole('link', { name: 'Tasks & tests' }).click();
> 28 | await page.getByLabel('Search tasks').fill('WEB-209');
| ^
29 | await expect(page.getByRole('cell', { name: 'WEB-209', exact: true })).toBeVisible();
30 | await expect(page.getByRole('region', { name: 'Test runs' }).getByRole('row').nth(1)).toBeVisible();
31 |
at /Users/king/Desktop/Workspace/SRO/zoen/apps/admin/tests/e2e/production.spec.ts:28:43
Error Context: ../../logs/evidence/pw-artifacts/admin/production-production-prod-d7f0c-i-links-read-the-repository-desktop/error-context.md
attachment #2: trace (application/zip) ─────────────────────────────────────────────────────────
../../logs/evidence/pw-artifacts/admin/production-production-prod-d7f0c-i-links-read-the-repository-desktop/trace.zip
Usage:
pnpm exec playwright show-trace ../../logs/evidence/pw-artifacts/admin/production-production-prod-d7f0c-i-links-read-the-repository-desktop/trace.zip
────────────────────────────────────────────────────────────────────────────────────────────────
[11/18] [desktop] › tests/e2e/production.spec.ts:42:3 › production › @production roles without production.read cannot open it
[12/18] [desktop] › tests/e2e/production.spec.ts:51:3 › production › @production every tab is clean on every screen size
[13/18] [tablet] › tests/e2e/production.spec.ts:8:3 › production › @production overview, tabs and wiki links read the repository
[14/18] [tablet] › tests/e2e/production.spec.ts:42:3 › production › @production roles without production.read cannot open it
[15/18] [tablet] › tests/e2e/production.spec.ts:51:3 › production › @production every tab is clean on every screen size
2) [tablet] › tests/e2e/production.spec.ts:51:3 › production › @production every tab is clean on every screen size
Error: expect(received).toBeLessThanOrEqual(expected)
Expected: <= 1
Received: 587
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).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:16)
at /Users/king/Desktop/Workspace/SRO/zoen/apps/admin/tests/e2e/production.spec.ts:57:7
Error Context: ../../logs/evidence/pw-artifacts/admin/production-production-prod-9245e--clean-on-every-screen-size-tablet/error-context.md
attachment #2: trace (application/zip) ─────────────────────────────────────────────────────────
../../logs/evidence/pw-artifacts/admin/production-production-prod-9245e--clean-on-every-screen-size-tablet/trace.zip
Usage:
pnpm exec playwright show-trace ../../logs/evidence/pw-artifacts/admin/production-production-prod-9245e--clean-on-every-screen-size-tablet/trace.zip
────────────────────────────────────────────────────────────────────────────────────────────────
[16/18] [mobile] › tests/e2e/production.spec.ts:8:3 › production › @production overview, tabs and wiki links read the repository
[17/18] [mobile] › tests/e2e/production.spec.ts:42:3 › production › @production roles without production.read cannot open it
[18/18] [mobile] › tests/e2e/production.spec.ts:51:3 › production › @production every tab is clean on every screen size
2 failed
[desktop] › tests/e2e/production.spec.ts:8:3 › production › @production overview, tabs and wiki links read the repository
[tablet] › tests/e2e/production.spec.ts:51:3 › production › @production every tab is clean on every screen size
4 skipped
12 passed (39.9s)