Skip to content

Add tests for live navigation #260

Add tests for live navigation

Add tests for live navigation #260

Triggered via push February 17, 2024 15:56
Status Success
Total duration 2m 39s
Artifacts 1

ci.yml

on: push
Matrix: e2e test
Matrix: mix_test
Matrix: npm test
Fit to window
Zoom out
Zoom in

Annotations

2 errors, 13 warnings, and 1 notice
[webkit] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket: test/e2e/tests/navigation.spec.js#L58
1) [webkit] › 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: ArrayContaining [{"payload": StringContaining "phx_leave", "type": "sent"}, {"payload": StringContaining "phx_join", "type": "sent"}, {"payload": StringContaining "phx_close", "type": "received"}, {"payload": StringContaining "phx_reply", "type": "received"}, {"payload": StringContaining "phx_reply", "type": "received"}] Received: [[Object], [Object], [Object]] 56 | await expect(networkEvents).toEqual([]); 57 | // we don't assert the order of the events here, because they are not deterministic > 58 | await expect(webSocketEvents).toEqual(expect.arrayContaining([ | ^ 59 | { type: "sent", payload: expect.stringContaining("phx_leave") }, 60 | { type: "sent", payload: expect.stringContaining("phx_join") }, 61 | { type: "received", payload: expect.stringContaining("phx_close") }, at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/navigation.spec.js:58:33
[webkit] › tests/streams.spec.js:115:1 › move-to-first moves the second element to the first position (LV): test/e2e/tests/streams.spec.js#L126
2) [webkit] › tests/streams.spec.js:115:1 › move-to-first moves the second element to the first position (LV) Error: expect(received).toEqual(expected) // deep equality - Expected - 4 + Received + 4 Array [ Object { - "id": "c_users-2", - "text": "updated", - }, - Object { "id": "c_users-1", "text": "chris", + }, + Object { + "id": "c_users-2", + "text": "updated", }, ] 124 | 125 | await page.locator("#c_users-2").getByRole("button", { name: "make first" }).click(); > 126 | await expect(await usersInDom(page, "c_users")).toEqual([ | ^ 127 | { id: "c_users-2", text: "updated" }, 128 | { id: "c_users-1", text: "chris" } 129 | ]); at /__w/phoenix_live_view/phoenix_live_view/test/e2e/tests/streams.spec.js:126:51
npm test (1.13.2, 24.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
npm test (1.13.2, 24.2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
mix test (OTP 25.3 | Elixir 1.15.4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
mix test (OTP 25.3 | Elixir 1.15.4)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
mix test (OTP 26 | Elixir 1.15.5)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
mix test (OTP 26 | Elixir 1.15.5)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
mix test (OTP 24.3 | Elixir 1.13.4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
mix test (OTP 24.3 | Elixir 1.13.4)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
e2e test (1.16.0, 26.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
e2e test (1.16.0, 26.2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Slow Test: test/e2e/[webkit] › tests/streams.spec.js#L1
test/e2e/[webkit] › tests/streams.spec.js took 24.6s
Slow Test: test/e2e/[firefox] › tests/streams.spec.js#L1
test/e2e/[firefox] › tests/streams.spec.js took 19.2s
Slow Test: test/e2e/[webkit] › tests/forms.spec.js#L1
test/e2e/[webkit] › tests/forms.spec.js took 15.7s
🎭 Playwright Run Summary
2 flaky [webkit] › tests/navigation.spec.js:20:1 › can navigate between LiveViews in the same live session over websocket [webkit] › tests/streams.spec.js:115:1 › move-to-first moves the second element to the first position (LV) 145 passed (1.5m)

Artifacts

Produced during runtime
Name Size
playwright-report Expired
1.94 MB