Skip to content

Enable e2e tests for PRs #3

Enable e2e tests for PRs

Enable e2e tests for PRs #3

Triggered via pull request October 27, 2023 17:29
Status Failure
Total duration 3m 45s
Artifacts

PR.yml

on: pull_request
Install Dependencies
19s
Install Dependencies
ESLint & SvelteKit Check
36s
ESLint & SvelteKit Check
Run Unit Tests
17s
Run Unit Tests
Run E2E Tests
2m 56s
Run E2E Tests
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 1 warning, and 1 notice
[chromium] › homepage.spec.ts:114:1 › should redirect to home after deleting the account: tests/e2e/homepage.spec.ts#L127
1) [chromium] › homepage.spec.ts:114:1 › should redirect to home after deleting the account ────── Error: expect(locator).toHaveURL(expected) Locator: locator(':root') Expected string: "http://localhost:4000/" Received string: "" Call log: - expect.toHaveURL with timeout 10000ms - waiting for locator(':root') 125 | await page.getByLabel('Delete Account').click(); 126 | await page.waitForURL(baseURL as string, { timeout: 10000 }); > 127 | expect(page).toHaveURL(baseURL as string); | ^ 128 | }); 129 | at /home/runner/work/sveltekit-template/sveltekit-template/tests/e2e/homepage.spec.ts:127:15
[chromium] › homepage.spec.ts:114:1 › should redirect to home after deleting the account: tests/e2e/homepage.spec.ts#L1
1) [chromium] › homepage.spec.ts:114:1 › should redirect to home after deleting the account ────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[chromium] › homepage.spec.ts:114:1 › should redirect to home after deleting the account: tests/e2e/homepage.spec.ts#L123
1) [chromium] › homepage.spec.ts:114:1 › should redirect to home after deleting the account ────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.waitForURL: Navigation failed because page was closed! =========================== logs =========================== waiting for navigation to "http://localhost:4000/home" until "networkidle" ============================================================ 121 | 122 | await page.getByLabel('Confirm Sign In').click(); > 123 | await page.waitForURL((baseURL as string) + '/home', { waitUntil: 'networkidle' }); | ^ 124 | page.getByRole('button', { name: 'member icon' }).click(); 125 | await page.getByLabel('Delete Account').click(); 126 | await page.waitForURL(baseURL as string, { timeout: 10000 }); at /home/runner/work/sveltekit-template/sveltekit-template/tests/e2e/homepage.spec.ts:123:13
[chromium] › homepage.spec.ts:98:1 › should redirect to home page after signing out: tests/e2e/homepage.spec.ts#L112
2) [chromium] › homepage.spec.ts:98:1 › should redirect to home page after signing out ─────────── Error: expect(locator).toHaveURL(expected) Locator: locator(':root') Expected string: "http://localhost:4000/" Received string: "" Call log: - expect.toHaveURL with timeout 10000ms - waiting for locator(':root') 110 | await page.getByRole('button', { name: 'Sign Out' }).click(); 111 | await page.waitForURL(baseURL as string, { timeout: 10000 }); > 112 | expect(page).toHaveURL(baseURL as string); | ^ 113 | }); 114 | it('should redirect to home after deleting the account', async ({ page, baseURL }) => { 115 | await page.goto(baseURL as string, { waitUntil: 'networkidle' }); at /home/runner/work/sveltekit-template/sveltekit-template/tests/e2e/homepage.spec.ts:112:15
Run E2E Tests
Process completed with exit code 1.
Slow Test: [chromium] › homepage.spec.ts#L1
[chromium] › homepage.spec.ts took 52.3s
🎭 Playwright Run Summary
1 failed [chromium] › homepage.spec.ts:114:1 › should redirect to home after deleting the account ─────── 1 flaky [chromium] › homepage.spec.ts:98:1 › should redirect to home page after signing out ──────────── 7 passed (1.4m)