Skip to content

Merge pull request #346 from Asvarox/remove-puppeteer-v2 #1490

Merge pull request #346 from Asvarox/remove-puppeteer-v2

Merge pull request #346 from Asvarox/remove-puppeteer-v2 #1490

You are viewing an older attempt in the history of this workflow run. View latest attempt.
Triggered via push October 15, 2024 20:05
Status Failure
Total duration 12m 17s
Artifacts
Matrix: e2e-tests-run
deploy-branch
0s
deploy-branch
Fit to window
Zoom out
Zoom in

Annotations

7 errors, 32 warnings, and 5 notices
[chromium] › remote-mics-sing-a-song.spec.ts:30:5 › Remote mic should connect: tests/steps/navigateWithKeyboard.ts#L27
1) [chromium] › remote-mics-sing-a-song.spec.ts:30:5 › Remote mic should connect, be selectable and control the game › Check if the mics are reselected after they refresh › Use remote keyboard to navigate to play-song-button Error: Timed out 7000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('play-song-button') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 7000ms - waiting for getByTestId('play-song-button') at steps/navigateWithKeyboard.ts:27 25 | export default async function navigateWithKeyboard(page: Page, targetTestId: string, remoteMic?: Page) { 26 | await test.step(`Use ${remoteMic ? 'remote ' : ''}keyboard to navigate to ${targetTestId}`, async () => { > 27 | await expect(page.getByTestId(targetTestId)).toBeVisible(); | ^ 28 | const navigableElements = await page.locator('[data-e2e-focused]:not([data-unfocusable])'); 29 | const handles = await navigableElements.elementHandles(); 30 | at /home/runner/work/allkaraoke/allkaraoke/tests/steps/navigateWithKeyboard.ts:27:50 at navigateWithKeyboard (/home/runner/work/allkaraoke/allkaraoke/tests/steps/navigateWithKeyboard.ts:26:14) at SongPreviewPagePO.navigateToPlayTheSongWithKeyboard (/home/runner/work/allkaraoke/allkaraoke/tests/PageObjects/SongPreviewPage.ts:43:31) at /home/runner/work/allkaraoke/allkaraoke/tests/remote-mics-sing-a-song.spec.ts:111:33 at /home/runner/work/allkaraoke/allkaraoke/tests/remote-mics-sing-a-song.spec.ts:92:3
[chromium] › remote-song-list.spec.ts:237:5 › Selecting a song using the `select` button on the remoteMic: tests/remote-song-list.spec.ts#L1
2) [chromium] › remote-song-list.spec.ts:237:5 › Selecting a song using the `select` button on the remoteMic, when selected languages on desktop and remoteMic apps are the same - works Expected to fail, but passed.
[chromium] › selection-playlist.spec.ts:41:5 › Adding completed song to the Selection playlist: tests/selection-playlist.spec.ts#L1
3) [chromium] › selection-playlist.spec.ts:41:5 › Adding completed song to the Selection playlist › Search and play the entire song - ensure song is not visible in Selection playlist Test timeout of 40000ms exceeded.
[chromium] › selection-playlist.spec.ts:41:5 › Adding completed song to the Selection playlist: tests/PageObjects/SongListPage.ts#L52
3) [chromium] › selection-playlist.spec.ts:41:5 › Adding completed song to the Selection playlist › Search and play the entire song - ensure song is not visible in Selection playlist Error: locator.click: Test timeout of 40000ms exceeded. Call log: - waiting for getByTestId('song-e2e-christmas-english-1995') - locator resolved to <div data-song-index="0" data-focused="true" data-group="Search results" class="e13s0pn5 ec-ev9t9j e1ornw2x5" data-test="song-e2e-christmas-english-1995">…</div> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <html lang="en" translate="no" class="blockOverflow">…</html> intercepts pointer events - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <html lang="en" translate="no" class="blockOverflow">…</html> intercepts pointer events - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <span data-expanded="true" class="ec-1s9j0eh e1ornw2x1">New Christmas</span> from <div width="1280" height="576" data-expanded="true" data-show-video="true" data-test="song-preview" class="e1vaewax4 ec-n125z9 e1ornw2x5" data-song="e2e-christmas-english-1995">…</div> subtree intercepts pointer events - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <span data-expanded="true" class="ec-1s9j0eh e1ornw2x1">New Christmas</span> from <div width="1280" height="576" data-expanded="true" data-show-video="true" data-test="song-preview" class="e1vaewax4 ec-n125z9 e1ornw2x5" data-song="e2e-christmas-english-1995">…</div> subtree intercepts pointer events - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <span data-expanded="true" class="ec-1s9j0eh e1ornw2x1">New Christmas</span> from <div width="1280" height="576" data-expanded="true" data-show-video="true" data-test="song-preview" class="e1vaewax4 ec-n125z9 e1ornw2x5" data-song="e2e-christmas-english-1995">…</div> subtree intercepts pointer events - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <span data-expanded="true" class="ec-1s9j0eh e1ornw2x1">New Christmas</span> from <div width="1280" height="576" data-expanded="true" data-show-video="true" data-test="song-preview" class="e1vaewax4 ec-n125z9 e1ornw2x5" data-song="e2e-christmas-english-1995">…</div> subtree intercepts pointer events - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <span data-expanded="true" class="ec-1s9j0eh e1ornw2x1">New Christmas</span> from <div width="1280" height="576" data-expanded="true" data-show-video="true" data-test="song-preview" class="e1vaewax4 ec-n125z9 e1ornw2x5" data-song="e2e-christmas-english-1995">…</div> subtree intercepts pointer events - retryin
[chromium] › sing-a-song.spec.ts:39:5 › Sing a song: tests/sing-a-song.spec.ts#L142
4) [chromium] › sing-a-song.spec.ts:39:5 › Sing a song › Skip to High Scores - check names visibility and update one of them Error: Timed out 7000ms waiting for expect(locator).toBeVisible() Locator: locator('[data-test="input-edit-highscore"][data-original-name="E2E Player 2"]') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 7000ms - waiting for locator('[data-test="input-edit-highscore"][data-original-name="E2E Player 2"]') 140 | await pages.postGameResultsPage.goToHighScoresStep(); 141 | await expect(pages.postGameHighScoresPage.getPlayerNameInput(player1.name)).toBeVisible(); > 142 | await expect(pages.postGameHighScoresPage.getPlayerNameInput(player2.name)).toBeVisible(); | ^ 143 | await pages.postGameHighScoresPage.navigateAndUpdateHighestScorePlayerNameByKeyboard(updatedName); 144 | }); 145 | at /home/runner/work/allkaraoke/allkaraoke/tests/sing-a-song.spec.ts:142:81 at /home/runner/work/allkaraoke/allkaraoke/tests/sing-a-song.spec.ts:138:3
[chromium] › sing-a-song.spec.ts:39:5 › Sing a song: tests/PageObjects/GamePage.ts#L75
1) [chromium] › sing-a-song.spec.ts:39:5 › Sing a song › When the song resumes, the players score values should be the same as before Error: Timed out 7000ms waiting for expect(locator).toHaveAttribute(expected) Locator: getByTestId('player-1-score') Expected string: "375000" Received string: "1390740" Call log: - expect.toHaveAttribute with timeout 7000ms - waiting for getByTestId('player-1-score') - locator resolved to <span data-score="414900" class="ec-0 el0barv0" data-test="player-1-score">414 901</span> - unexpected value "414900" - locator resolved to <span data-score="433200" class="ec-0 el0barv0" data-test="player-1-score">433 201</span> - unexpected value "433200" - locator resolved to <span data-score="526425" class="ec-0 el0barv0" data-test="player-1-score">526 425</span> - unexpected value "526425" - locator resolved to <span data-score="526425" class="ec-0 el0barv0" data-test="player-1-score">526 425</span> - unexpected value "526425" - locator resolved to <span data-score="941155" class="ec-0 el0barv0" data-test="player-1-score">941 155</span> - unexpected value "941155" - locator resolved to <span data-score="1385890" class="ec-0 el0barv0" data-test="player-1-score">1 385 890</span> - unexpected value "1385890" - locator resolved to <span data-score="1390740" class="ec-0 el0barv0" data-test="player-1-score">1 390 740</span> - unexpected value "1390740" - locator resolved to <span data-win="false" data-score="1015740" data-test="player-1-score" class="ec-10pnj61 e1vy0af42">…</span> - unexpected value "1015740" - locator resolved to <span data-win="false" data-score="1015740" data-test="player-1-score" class="ec-10pnj61 e1vy0af42">…</span> - unexpected value "1015740" - locator resolved to <span data-win="false" data-score="1390740" data-test="player-1-score" class="ec-10pnj61 e1vy0af42">…</span> - unexpected value "1390740" - locator resolved to <span data-win="false" data-score="1390740" data-test="player-1-score" class="ec-10pnj61 e1vy0af42">…</span> - unexpected value "1390740" at PageObjects/GamePage.ts:75 73 | 74 | public async expectPlayerScoreValueToBe(playerNumber: number, expectedScore: string) { > 75 | await expect(this.getPlayerScoreElement(playerNumber)).toHaveAttribute('data-score', expectedScore); | ^ 76 | } 77 | 78 | public get playersCoopScoreElement() { at GamePagePO.expectPlayerScoreValueToBe (/home/runner/work/allkaraoke/allkaraoke/tests/PageObjects/GamePage.ts:75:60) at /home/runner/work/allkaraoke/allkaraoke/tests/sing-a-song.spec.ts:178:26 at /home/runner/work/allkaraoke/allkaraoke/tests/sing-a-song.spec.ts:175:3
e2e-tests-run (chromium, 2, 2)
Final attempt failed. Child_process exited with error code 1
quick-checks: peerJSServer.js#L12
'peerServer' is assigned a value but never used
quick-checks: scripts/analyzeIndex.ts#L18
'Data' is defined but never used
quick-checks: scripts/processSongs.ts#L64
'fixAccentCharacters' is defined but never used
quick-checks: scripts/processSongs.ts#L81
'appendBandOrigin' is defined but never used
quick-checks: scripts/processSongs.ts#L96
'fillMissingRealBpm' is defined but never used
quick-checks: scripts/processSongs.ts#L112
'fillSongYear' is defined but never used
quick-checks: src/App.tsx#L40
'mobilePhoneMode' is assigned a value but never used
quick-checks: src/modules/GameEngine/Drawing/CanvasDrawing.ts#L164
'h' is assigned a value but never used
quick-checks: src/modules/GameEngine/Drawing/CanvasDrawing.ts#L255
'h' is assigned a value but never used
quick-checks: src/modules/GameEngine/Drawing/Elements/debris.ts#L19
'triangle' is defined but never used
Slow Test: [firefox] › rate-unfinished-song.spec.ts#L1
[firefox] › rate-unfinished-song.spec.ts took 21.3s
Slow Test: [firefox] › co-op-mode.spec.ts#L1
[firefox] › co-op-mode.spec.ts took 18.3s
Slow Test: [firefox] › convert-and-sing-a-song.spec.ts#L1
[firefox] › convert-and-sing-a-song.spec.ts took 15.5s
Slow Test: [chromium] › duet-song.spec.ts#L1
[chromium] › duet-song.spec.ts took 29.3s
Slow Test: [chromium] › rate-unfinished-song.spec.ts#L1
[chromium] › rate-unfinished-song.spec.ts took 27.9s
Slow Test: [chromium] › convert-and-sing-a-song.spec.ts#L1
[chromium] › convert-and-sing-a-song.spec.ts took 20.4s
Slow Test: [chromium] › mobile-phone-mode.spec.ts#L1
[chromium] › mobile-phone-mode.spec.ts took 20.0s
Slow Test: [chromium] › co-op-mode.spec.ts#L1
[chromium] › co-op-mode.spec.ts took 18.1s
Slow Test: [firefox] › selection-playlist.spec.ts#L1
[firefox] › selection-playlist.spec.ts took 1.4m
Slow Test: [firefox] › remote-song-list.spec.ts#L1
[firefox] › remote-song-list.spec.ts took 1.3m
Slow Test: [firefox] › sing-a-song.spec.ts#L1
[firefox] › sing-a-song.spec.ts took 28.1s
Slow Test: [firefox] › source-selection.spec.ts#L1
[firefox] › source-selection.spec.ts took 25.9s
Slow Test: [firefox] › remote-mics-settings.spec.ts#L1
[firefox] › remote-mics-settings.spec.ts took 19.1s
Slow Test: [chromium] › sing-a-song.spec.ts#L1
[chromium] › sing-a-song.spec.ts took 28.2s
Slow Test: [chromium] › remote-mics-sing-a-song.spec.ts#L1
[chromium] › remote-mics-sing-a-song.spec.ts took 24.9s
Slow Test: [chromium] › source-selection.spec.ts#L1
[chromium] › source-selection.spec.ts took 19.7s
Slow Test: [chromium] › remote-mics-settings.spec.ts#L1
[chromium] › remote-mics-settings.spec.ts took 16.7s
e2e-tests-run (chromium, 2, 2)
Attempt 1 failed. Reason: Child_process exited with error code 1
Slow Test: [chromium] › sing-a-song.spec.ts#L1
[chromium] › sing-a-song.spec.ts took 37.3s
Slow Test: [chromium] › selection-playlist.spec.ts#L1
[chromium] › selection-playlist.spec.ts took 30.2s
e2e-tests-run (chromium, 2, 2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "e2e-chromium-2-test-results". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
🎭 Playwright Run Summary
6 skipped 23 passed (3.0m)
🎭 Playwright Run Summary
1 skipped 28 passed (4.6m)
🎭 Playwright Run Summary
4 skipped 24 passed (5.5m)
🎭 Playwright Run Summary
4 failed [chromium] › remote-mics-sing-a-song.spec.ts:30:5 › Remote mic should connect, be selectable and control the game [chromium] › remote-song-list.spec.ts:237:5 › Selecting a song using the `select` button on the remoteMic, when selected languages on desktop and remoteMic apps are the same - works [chromium] › selection-playlist.spec.ts:41:5 › Adding completed song to the Selection playlist ─ [chromium] › sing-a-song.spec.ts:39:5 › Sing a song ──────────────────────────────────────────── 2 skipped 22 passed (5.7m)
🎭 Playwright Run Summary
1 failed [chromium] › sing-a-song.spec.ts:39:5 › Sing a song ──────────────────────────────────────────── 1 passed (1.8m)