Skip to content

feat(web): introduce score tracking #562

feat(web): introduce score tracking

feat(web): introduce score tracking #562

Triggered via pull request October 14, 2023 08:12
@feugyfeugy
synchronize #169
feat/scores
Status Failure
Total duration 7m 22s
Artifacts

CI.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors, 3 warnings, and 1 notice
Web integration tests
Process completed with exit code 1.
game.spec.js:196:5 › fr Game page › leaves current game on server deletion: apps/web/tests/integration/game.spec.js#L229
1) game.spec.js:196:5 › fr Game page › leaves current game on server deletion ──────────────────── Error: Timed out 5000ms waiting for expect(received).toHaveURL(expected) Expected string: "https://localhost:3000/fr/home" Received string: "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" Call log: - expect.toHaveURL with timeout 5000ms - waiting for locator(':root') - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/fr/game/f0cda679-4609-4897-974b-843c7bcbc0c1" 227 | await sleep(100) 228 | sendToSubscription({ data: { receiveGameUpdates: null } }) > 229 | await expect(page).toHaveURL(`/${lang}/home`) | ^ 230 | await new HomePage(page, lang).getStarted() 231 | }) 232 | }) at /home/runner/work/tabulous/tabulous/apps/web/tests/integration/game.spec.js:229:26
game.spec.js:196:5 › en Game page › leaves current game on server deletion: apps/web/tests/integration/game.spec.js#L229
2) game.spec.js:196:5 › en Game page › leaves current game on server deletion ──────────────────── Error: Timed out 5000ms waiting for expect(received).toHaveURL(expected) Expected string: "https://localhost:3000/en/home" Received string: "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" Call log: - expect.toHaveURL with timeout 5000ms - waiting for locator(':root') - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" - locator resolved to <html lang="en" class="scroll-smooth">…</html> - unexpected value "https://localhost:3000/en/game/1314a13a-16c0-4bde-99a5-49ec57dbaa98" 227 | await sleep(100) 228 | sendToSubscription({ data: { receiveGameUpdates: null } }) > 229 | await expect(page).toHaveURL(`/${lang}/home`) | ^ 230 | await new HomePage(page, lang).getStarted() 231 | }) 232 | }) at /home/runner/work/tabulous/tabulous/apps/web/tests/integration/game.spec.js:229:26
home.spec.js:348:5 › fr Home page › can accept terms of service on the first connection: apps/web/tests/integration/pages/home.js#L98
3) home.spec.js:348:5 › fr Home page › can accept terms of service on the first connection ─────── Error: Timed out 5000ms waiting for expect(received).toContainText(expected) Expected string: "Bonjour Jane !" Received string: "500" Call log: - expect.toContainText with timeout 5000ms - waiting for getByRole('heading', { level: 1 }) - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" at pages/home.js:98 96 | */ 97 | async expectAuthenticated(username) { > 98 | await expect(this.heading).toContainText( | ^ 99 | translate('titles.home', { username }, this.lang) 100 | ) 101 | await expect(this.gamesHeading).toBeVisible() at Augmented.expectAuthenticated (/home/runner/work/tabulous/tabulous/apps/web/tests/integration/pages/home.js:98:34) at /home/runner/work/tabulous/tabulous/apps/web/tests/integration/home.spec.js:384:22
home.spec.js:621:7 › fr Home page › given a lobby with a guest › leaves current lobby on server deletion: apps/web/tests/integration/home.spec.js#L625
4) home.spec.js:621:7 › fr Home page › given a lobby with a guest › leaves current lobby on server deletion Error: Timed out 5000ms waiting for expect(received).toBeHidden() Call log: - expect.toBeHidden with timeout 5000ms - waiting for locator('[aria-roledescription="games"]').locator('article').getByRole('button', { name: 'close' }) - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" 623 | graphQlMocks.sendToSubscription({ data: { receiveGameUpdates: null } }) 624 | await expect(homePage.playerAvatars).toBeHidden() > 625 | await expect(homePage.closeGameButtons).toBeHidden() | ^ 626 | }) 627 | 628 | it('can kick a lobby guest', async ({ page }) => { at /home/runner/work/tabulous/tabulous/apps/web/tests/integration/home.spec.js:625:49
home.spec.js:348:5 › en Home page › can accept terms of service on the first connection: apps/web/tests/integration/pages/home.js#L98
5) home.spec.js:348:5 › en Home page › can accept terms of service on the first connection ─────── Error: Timed out 5000ms waiting for expect(received).toContainText(expected) Expected string: "Hello Jane !" Received string: "500" Call log: - expect.toContainText with timeout 5000ms - waiting for getByRole('heading', { level: 1 }) - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" - locator resolved to <h1>500</h1> - unexpected value "500" at pages/home.js:98 96 | */ 97 | async expectAuthenticated(username) { > 98 | await expect(this.heading).toContainText( | ^ 99 | translate('titles.home', { username }, this.lang) 100 | ) 101 | await expect(this.gamesHeading).toBeVisible() at Augmented.expectAuthenticated (/home/runner/work/tabulous/tabulous/apps/web/tests/integration/pages/home.js:98:34) at /home/runner/work/tabulous/tabulous/apps/web/tests/integration/home.spec.js:384:22
home.spec.js:621:7 › en Home page › given a lobby with a guest › leaves current lobby on server deletion: apps/web/tests/integration/home.spec.js#L625
6) home.spec.js:621:7 › en Home page › given a lobby with a guest › leaves current lobby on server deletion Error: Timed out 5000ms waiting for expect(received).toBeHidden() Call log: - expect.toBeHidden with timeout 5000ms - waiting for locator('[aria-roledescription="games"]').locator('article').getByRole('button', { name: 'close' }) - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" - locator resolved to <button secondary="true" class="svelte-18l64fc">…</button> - unexpected value "visible" 623 | graphQlMocks.sendToSubscription({ data: { receiveGameUpdates: null } }) 624 | await expect(homePage.playerAvatars).toBeHidden() > 625 | await expect(homePage.closeGameButtons).toBeHidden() | ^ 626 | }) 627 | 628 | it('can kick a lobby guest', async ({ page }) => { at /home/runner/work/tabulous/tabulous/apps/web/tests/integration/home.spec.js:625:49
Web integration tests
Process completed with exit code 1.
Slow Test: apps/web/home.spec.js#L1
apps/web/home.spec.js took 2.1m
Slow Test: apps/web/game.spec.js#L1
apps/web/game.spec.js took 33.5s
Slow Test: apps/web/account.spec.js#L1
apps/web/account.spec.js took 24.7s
🎭 Playwright Run Summary
6 failed game.spec.js:196:5 › fr Game page › leaves current game on server deletion ───────────────────── game.spec.js:196:5 › en Game page › leaves current game on server deletion ───────────────────── home.spec.js:348:5 › fr Home page › can accept terms of service on the first connection ──────── home.spec.js:621:7 › fr Home page › given a lobby with a guest › leaves current lobby on server deletion home.spec.js:348:5 › en Home page › can accept terms of service on the first connection ──────── home.spec.js:621:7 › en Home page › given a lobby with a guest › leaves current lobby on server deletion 60 passed (3.3m)