feat(e2e): add Playwright e2e tests for first-run wizard and settings page #2
Annotations
11 errors, 1 warning, and 1 notice
|
[chromium] › e2e/settings.spec.ts:74:2 › "About & What's new" navigation entry › opens the first run wizard:
apps/firstrunwizard/e2e/settings.spec.ts#L88
3) [chromium] › e2e/settings.spec.ts:74:2 › "About & What's new" navigation entry › opens the first run wizard
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: locator('#firstrunwizard_about')
Expected: visible
Error: strict mode violation: locator('#firstrunwizard_about') resolved to 2 elements:
1) <li data-v-1596ceaf="" data-v-bdb908d2="" data-v-6c007912="" data-v-f00deac7="" id="firstrunwizard_about" class="list-item__wrapper account-menu-entry">…</li> aka getByRole('listitem').filter({ hasText: 'About & What\'s new' })
2) <a href="" aria-label="" target="_self" data-v-1596ceaf="" id="firstrunwizard_about" rel="noopener noreferrer" class="list-item__anchor">…</a> aka getByRole('link', { name: 'About & What\'s new' })
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('#firstrunwizard_about')
86 |
87 | const aboutEntry = page.locator('#firstrunwizard_about')
> 88 | await expect(aboutEntry).toBeVisible()
| ^
89 | await aboutEntry.click()
90 |
91 | // The wizard should open again via the app-menu.ts handler
at /home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/settings.spec.ts:88:28
|
|
[chromium] › e2e/settings.spec.ts:74:2 › "About & What's new" navigation entry › opens the first run wizard:
apps/firstrunwizard/e2e/settings.spec.ts#L88
3) [chromium] › e2e/settings.spec.ts:74:2 › "About & What's new" navigation entry › opens the first run wizard
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: locator('#firstrunwizard_about')
Expected: visible
Error: strict mode violation: locator('#firstrunwizard_about') resolved to 2 elements:
1) <li data-v-1596ceaf="" data-v-bdb908d2="" data-v-6c007912="" data-v-f00deac7="" id="firstrunwizard_about" class="list-item__wrapper account-menu-entry">…</li> aka getByRole('listitem').filter({ hasText: 'About & What\'s new' })
2) <a href="" aria-label="" target="_self" data-v-1596ceaf="" id="firstrunwizard_about" rel="noopener noreferrer" class="list-item__anchor">…</a> aka getByRole('link', { name: 'About & What\'s new' })
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('#firstrunwizard_about')
86 |
87 | const aboutEntry = page.locator('#firstrunwizard_about')
> 88 | await expect(aboutEntry).toBeVisible()
| ^
89 | await aboutEntry.click()
90 |
91 | // The wizard should open again via the app-menu.ts handler
at /home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/settings.spec.ts:88:28
|
|
[chromium] › e2e/settings.spec.ts:74:2 › "About & What's new" navigation entry › opens the first run wizard:
apps/firstrunwizard/e2e/settings.spec.ts#L88
3) [chromium] › e2e/settings.spec.ts:74:2 › "About & What's new" navigation entry › opens the first run wizard
Error: expect(locator).toBeVisible() failed
Locator: locator('#firstrunwizard_about')
Expected: visible
Error: strict mode violation: locator('#firstrunwizard_about') resolved to 2 elements:
1) <li data-v-1596ceaf="" data-v-bdb908d2="" data-v-6c007912="" data-v-f00deac7="" id="firstrunwizard_about" class="list-item__wrapper account-menu-entry">…</li> aka getByRole('listitem').filter({ hasText: 'About & What\'s new' })
2) <a href="" aria-label="" target="_self" data-v-1596ceaf="" id="firstrunwizard_about" rel="noopener noreferrer" class="list-item__anchor">…</a> aka getByRole('link', { name: 'About & What\'s new' })
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('#firstrunwizard_about')
86 |
87 | const aboutEntry = page.locator('#firstrunwizard_about')
> 88 | await expect(aboutEntry).toBeVisible()
| ^
89 | await aboutEntry.click()
90 |
91 | // The wizard should open again via the app-menu.ts handler
at /home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/settings.spec.ts:88:28
|
|
[chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed:
apps/firstrunwizard/e2e/firstrunwizard.spec.ts#L0
2) [chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed ─
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
|
[chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed:
apps/firstrunwizard/e2e/firstrunwizard.spec.ts#L88
2) [chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed ─
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for locator('.first-run-wizard').locator('button.button-vue--vue-primary').last()
86 |
87 | while (!(await getStartedButton.isVisible())) {
> 88 | await primaryButton.last().click()
| ^
89 | }
90 |
91 | // Clicking "Get started!" on the last page closes the wizard
at /home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/firstrunwizard.spec.ts:88:32
|
|
[chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed:
apps/firstrunwizard/e2e/firstrunwizard.spec.ts#L0
2) [chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed ─
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
|
[chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed:
apps/firstrunwizard/e2e/firstrunwizard.spec.ts#L0
2) [chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed ─
Test timeout of 30000ms exceeded.
|
|
[chromium] › e2e/firstrunwizard.spec.ts:42:2 › First Run Wizard › opens when a new major version was shipped:
apps/firstrunwizard/e2e/support/utils.ts#L97
1) [chromium] › e2e/firstrunwizard.spec.ts:42:2 › First Run Wizard › opens when a new major version was shipped
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
at support/utils.ts:97
95 | },
96 | )
> 97 | expect(response.ok()).toBeTruthy()
| ^
98 | } finally {
99 | await ctx.dispose()
100 | }
at setUserPreference (/home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/support/utils.ts:97:25)
at /home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/firstrunwizard.spec.ts:51:4
|
|
[chromium] › e2e/firstrunwizard.spec.ts:42:2 › First Run Wizard › opens when a new major version was shipped:
apps/firstrunwizard/e2e/support/utils.ts#L97
1) [chromium] › e2e/firstrunwizard.spec.ts:42:2 › First Run Wizard › opens when a new major version was shipped
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
at support/utils.ts:97
95 | },
96 | )
> 97 | expect(response.ok()).toBeTruthy()
| ^
98 | } finally {
99 | await ctx.dispose()
100 | }
at setUserPreference (/home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/support/utils.ts:97:25)
at /home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/firstrunwizard.spec.ts:51:4
|
|
[chromium] › e2e/firstrunwizard.spec.ts:42:2 › First Run Wizard › opens when a new major version was shipped:
apps/firstrunwizard/e2e/support/utils.ts#L97
1) [chromium] › e2e/firstrunwizard.spec.ts:42:2 › First Run Wizard › opens when a new major version was shipped
Error: expect(received).toBeTruthy()
Received: false
at support/utils.ts:97
95 | },
96 | )
> 97 | expect(response.ok()).toBeTruthy()
| ^
98 | } finally {
99 | await ctx.dispose()
100 | }
at setUserPreference (/home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/support/utils.ts:97:25)
at /home/runner/actions-runner/_work/firstrunwizard/firstrunwizard/apps/firstrunwizard/e2e/firstrunwizard.spec.ts:51:4
|
|
e2e-summary
Process completed with exit code 1.
|
|
Playwright E2E (Nextcloud master)
No files were found with the provided path: apps/firstrunwizard/playwright-report/. No artifacts will be uploaded.
|
|
🎭 Playwright Run Summary
3 failed
[chromium] › e2e/firstrunwizard.spec.ts:42:2 › First Run Wizard › opens when a new major version was shipped
[chromium] › e2e/firstrunwizard.spec.ts:66:2 › First Run Wizard › can be navigated and closed ──
[chromium] › e2e/settings.spec.ts:74:2 › "About & What's new" navigation entry › opens the first run wizard
4 passed (2.5m)
|