Skip to content

Update to Phoenix 1.7 #6347

Update to Phoenix 1.7

Update to Phoenix 1.7 #6347

Triggered via push May 26, 2024 19:45
Status Failure
Total duration 4m 13s
Artifacts 7

ci.yml

on: push
Matrix: e2e test
Matrix: mix_test
Matrix: npm test
coverage report
0s
coverage report
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 2 warnings, and 1 notice
[chromium] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views: test/e2e/tests/issues/3047.spec.js#L27
1) [chromium] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views ───── Error: expect(received).toEqual(expected) // deep equality - Expected - 5 + Received + 4 Array [ + "items-1", + "items-2", + "items-3", + "items-4", "items-5", "items-6", "items-7", "items-8", "items-9", "items-10", - "items-11", - "items-12", - "items-13", - "items-14", - "items-15", ] 25 | // stream items should still be visible 26 | await expect(page.locator("#page")).toContainText("Page B"); > 27 | await expect(await listItems(page)).toEqual([ | ^ 28 | "items-5", "items-6", "items-7", "items-8", "items-9", "items-10", 29 | "items-11", "items-12", "items-13", "items-14", "items-15" 30 | ]); at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/issues/3047.spec.js:27:39
[chromium] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views: test/e2e/tests/issues/3047.spec.js#L27
1) [chromium] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views ───── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 5 + Received + 4 Array [ + "items-1", + "items-2", + "items-3", + "items-4", "items-5", "items-6", "items-7", "items-8", "items-9", "items-10", - "items-11", - "items-12", - "items-13", - "items-14", - "items-15", ] 25 | // stream items should still be visible 26 | await expect(page.locator("#page")).toContainText("Page B"); > 27 | await expect(await listItems(page)).toEqual([ | ^ 28 | "items-5", "items-6", "items-7", "items-8", "items-9", "items-10", 29 | "items-11", "items-12", "items-13", "items-14", "items-15" 30 | ]); at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/issues/3047.spec.js:27:39
[chromium] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views: test/e2e/tests/issues/3047.spec.js#L27
1) [chromium] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views ───── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 5 + Received + 4 Array [ + "items-1", + "items-2", + "items-3", + "items-4", "items-5", "items-6", "items-7", "items-8", "items-9", "items-10", - "items-11", - "items-12", - "items-13", - "items-14", - "items-15", ] 25 | // stream items should still be visible 26 | await expect(page.locator("#page")).toContainText("Page B"); > 27 | await expect(await listItems(page)).toEqual([ | ^ 28 | "items-5", "items-6", "items-7", "items-8", "items-9", "items-10", 29 | "items-11", "items-12", "items-13", "items-14", "items-15" 30 | ]); at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/issues/3047.spec.js:27:39
[chromium] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket: test/e2e/tests/navigation.spec.js#L43
2) [chromium] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 14 - Array [] + Array [ + Object { + "method": "GET", + "url": "http://localhost:4004/navigation/a?param=-576460752303363967", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix/phoenix.min.js", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix_live_view/phoenix_live_view.esm.js", + }, + ] 41 | await page.getByRole("link", { name: "Patch this LiveView" }).click(); 42 | await syncLV(page); > 43 | await expect(networkEvents).toEqual([]); | ^ 44 | await expect(webSocketEvents).toEqual([ 45 | expect.objectContaining({ type: "sent", payload: expect.stringContaining("live_patch") }), 46 | expect.objectContaining({ type: "received", payload: expect.stringContaining("phx_reply") }), at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:43:31
[chromium] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket: test/e2e/tests/navigation.spec.js#L43
2) [chromium] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 14 - Array [] + Array [ + Object { + "method": "GET", + "url": "http://localhost:4004/navigation/a?param=-576460752303363711", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix/phoenix.min.js", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix_live_view/phoenix_live_view.esm.js", + }, + ] 41 | await page.getByRole("link", { name: "Patch this LiveView" }).click(); 42 | await syncLV(page); > 43 | await expect(networkEvents).toEqual([]); | ^ 44 | await expect(webSocketEvents).toEqual([ 45 | expect.objectContaining({ type: "sent", payload: expect.stringContaining("live_patch") }), 46 | expect.objectContaining({ type: "received", payload: expect.stringContaining("phx_reply") }), at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:43:31
[chromium] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket: test/e2e/tests/navigation.spec.js#L43
2) [chromium] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 14 - Array [] + Array [ + Object { + "method": "GET", + "url": "http://localhost:4004/navigation/a?param=-576460752303359198", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix/phoenix.min.js", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix_live_view/phoenix_live_view.esm.js", + }, + ] 41 | await page.getByRole("link", { name: "Patch this LiveView" }).click(); 42 | await syncLV(page); > 43 | await expect(networkEvents).toEqual([]); | ^ 44 | await expect(webSocketEvents).toEqual([ 45 | expect.objectContaining({ type: "sent", payload: expect.stringContaining("live_patch") }), 46 | expect.objectContaining({ type: "received", payload: expect.stringContaining("phx_reply") }), at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:43:31
[chromium] › tests/navigation.spec.js:67:1 › popstate: test/e2e/tests/navigation.spec.js#L77
3) [chromium] › tests/navigation.spec.js:67:1 › popstate ───────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 14 - Array [] + Array [ + Object { + "method": "GET", + "url": "http://localhost:4004/navigation/a?param=-576460752303363359", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix/phoenix.min.js", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix_live_view/phoenix_live_view.esm.js", + }, + ] 75 | await syncLV(page); 76 | await expect(page).toHaveURL(/\/navigation\/a\?/); > 77 | await expect(networkEvents).toEqual([]); | ^ 78 | 79 | await page.getByRole("link", { name: "LiveView B" }).click(), 80 | await syncLV(page); at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:77:31
[chromium] › tests/navigation.spec.js:67:1 › popstate: test/e2e/tests/navigation.spec.js#L77
3) [chromium] › tests/navigation.spec.js:67:1 › popstate ───────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 14 - Array [] + Array [ + Object { + "method": "GET", + "url": "http://localhost:4004/navigation/a?param=-576460752303363007", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix/phoenix.min.js", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix_live_view/phoenix_live_view.esm.js", + }, + ] 75 | await syncLV(page); 76 | await expect(page).toHaveURL(/\/navigation\/a\?/); > 77 | await expect(networkEvents).toEqual([]); | ^ 78 | 79 | await page.getByRole("link", { name: "LiveView B" }).click(), 80 | await syncLV(page); at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:77:31
[chromium] › tests/navigation.spec.js:67:1 › popstate: test/e2e/tests/navigation.spec.js#L77
3) [chromium] › tests/navigation.spec.js:67:1 › popstate ───────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 14 - Array [] + Array [ + Object { + "method": "GET", + "url": "http://localhost:4004/navigation/a?param=-576460752303362591", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix/phoenix.min.js", + }, + Object { + "method": "GET", + "url": "http://localhost:4004/assets/phoenix_live_view/phoenix_live_view.esm.js", + }, + ] 75 | await syncLV(page); 76 | await expect(page).toHaveURL(/\/navigation\/a\?/); > 77 | await expect(networkEvents).toEqual([]); | ^ 78 | 79 | await page.getByRole("link", { name: "LiveView B" }).click(), 80 | await syncLV(page); at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:77:31
[chromium] › tests/navigation.spec.js:104:1 › patch with replace replaces history: test/e2e/tests/navigation.spec.js#L114
4) [chromium] › tests/navigation.spec.js:104:1 › patch with replace replaces history ───────────── Error: expect(received).toEqual(expected) // deep equality Expected: 2 Received: 3 112 | await syncLV(page); 113 | > 114 | await expect(await page.evaluate(() => window.history.length)).toEqual(length); | ^ 115 | await expect(page.url()).not.toEqual(url); 116 | }); 117 | at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:114:66
🎭 Playwright Run Summary
18 failed [chromium] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views ────── [chromium] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket [chromium] › tests/navigation.spec.js:67:1 › popstate ────────────────────────────────────────── [chromium] › tests/navigation.spec.js:104:1 › patch with replace replaces history ────────────── [chromium] › tests/navigation.spec.js:118:1 › falls back to http navigation when navigating between live sessions [chromium] › tests/navigation.spec.js:138:1 › restores scroll position after navigation ──────── [firefox] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views ─────── [firefox] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket [firefox] › tests/navigation.spec.js:67:1 › popstate ─────────────────────────────────────────── [firefox] › tests/navigation.spec.js:104:1 › patch with replace replaces history ─────────────── [firefox] › tests/navigation.spec.js:118:1 › falls back to http navigation when navigating between live sessions [firefox] › tests/navigation.spec.js:138:1 › restores scroll position after navigation ───────── [webkit] › tests/issues/3047.spec.js:6:1 › streams are not cleared in sticky live views ──────── [webkit] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket [webkit] › tests/navigation.spec.js:67:1 › popstate ──────────────────────────────────────────── [webkit] › tests/navigation.spec.js:104:1 › patch with replace replaces history ──────────────── [webkit] › tests/navigation.spec.js:118:1 › falls back to http navigation when navigating between live sessions [webkit] › tests/navigation.spec.js:138:1 › restores scroll position after navigation ────────── 159 passed (3.1m)
Slow Test: test/e2e/[webkit] › tests/streams.spec.js#L1
test/e2e/[webkit] › tests/streams.spec.js took 25.4s
Slow Test: test/e2e/[firefox] › tests/streams.spec.js#L1
test/e2e/[firefox] › tests/streams.spec.js took 16.5s

Artifacts

Produced during runtime
Name Size
e2e-test-results Expired
12.8 MB
js-unit-coverage Expired
683 KB
mix-e2e-coverage Expired
124 KB
mix-test-coverage-24.3-1.13.4 Expired
140 KB
mix-test-coverage-25.3-1.15.4 Expired
144 KB
mix-test-coverage-26-1.15.5 Expired
142 KB
playwright-report Expired
10.3 MB