Skip to content

test(e2e): fix tests #10

test(e2e): fix tests

test(e2e): fix tests #10

Triggered via push August 2, 2024 10:23
Status Failure
Total duration 15m 49s
Billable time 17m
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 5 warnings, and 1 notice
[chromium] › 02-login.spec.ts:3:1 › login: tests/02-login.spec.ts#L6
1) [chromium] › 02-login.spec.ts:3:1 › login ───────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: undefined 4 | const username = process.env['STEAM_USERNAME'] 5 | const password = process.env['STEAM_PASSWORD'] > 6 | expect(username).toBeTruthy() | ^ 7 | expect(password).toBeTruthy() 8 | 9 | await page.goto('/') at /home/runner/work/tf2pickup/tf2pickup/tests/02-login.spec.ts:6:20
[chromium] › 02-login.spec.ts:3:1 › login: tests/02-login.spec.ts#L6
1) [chromium] › 02-login.spec.ts:3:1 › login ───────────────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: undefined 4 | const username = process.env['STEAM_USERNAME'] 5 | const password = process.env['STEAM_PASSWORD'] > 6 | expect(username).toBeTruthy() | ^ 7 | expect(password).toBeTruthy() 8 | 9 | await page.goto('/') at /home/runner/work/tf2pickup/tf2pickup/tests/02-login.spec.ts:6:20
[chromium] › 02-login.spec.ts:3:1 › login: tests/02-login.spec.ts#L6
1) [chromium] › 02-login.spec.ts:3:1 › login ───────────────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: undefined 4 | const username = process.env['STEAM_USERNAME'] 5 | const password = process.env['STEAM_PASSWORD'] > 6 | expect(username).toBeTruthy() | ^ 7 | expect(password).toBeTruthy() 8 | 9 | await page.goto('/') at /home/runner/work/tf2pickup/tf2pickup/tests/02-login.spec.ts:6:20
[chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends: tests/20-game/01-free-players.spec.ts#L1
2) [chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends ──────────── Error: getaddrinfo ENOTFOUND host.docker.internal
[chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends: tests/game-server-simulator.ts#L202
2) [chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends ──────────── Error: Not running at game-server-simulator.ts:202 200 | this.addresses.forEach(address => { 201 | const [host, port] = address.split(':') > 202 | this.socket.send(this.prepareMessage(message), Number(port), host) | ^ 203 | }) 204 | } 205 | at forEach (/home/runner/work/tf2pickup/tf2pickup/tests/game-server-simulator.ts:202:19) at GameServerSimulator.log (/home/runner/work/tf2pickup/tf2pickup/tests/game-server-simulator.ts:200:20) at GameServerSimulator.connectAllPlayers (/home/runner/work/tf2pickup/tf2pickup/tests/game-server-simulator.ts:214:12) at /home/runner/work/tf2pickup/tf2pickup/tests/20-game/01-free-players.spec.ts:28:5
[chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends: tests/20-game/01-free-players.spec.ts#L1
2) [chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends ──────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded while setting up "gameNumber".
[chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends: tests/fixtures/launch-game.ts#L32
2) [chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends ──────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Target page, context or browser has been closed Call log: - waiting for getByRole('button', { name: 'I\'M READY' }) at fixtures/launch-game.ts:32 30 | if (i !== 11) { 31 | // wait for ready-up > 32 | await page.getByRole('button', { name: `I'M READY` }).click() | ^ 33 | } 34 | 35 | await page.waitForURL(/games\/(\d+)/) at /home/runner/work/tf2pickup/tf2pickup/tests/fixtures/launch-game.ts:32:65 at Object.gameNumber (/home/runner/work/tf2pickup/tf2pickup/tests/fixtures/launch-game.ts:20:5)
[chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends: tests/20-game/01-free-players.spec.ts#L1
2) [chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends ──────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded while setting up "gameNumber".
[chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends: tests/fixtures/launch-game.ts#L26
2) [chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends ──────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Target page, context or browser has been closed Call log: - waiting for getByLabel('Join queue on slot 0', { exact: true }) at fixtures/launch-game.ts:26 24 | await mutex.runExclusive(async () => { 25 | // join the queue > 26 | await page.getByLabel(`Join queue on slot ${i}`, { exact: true }).click() | ^ 27 | }) 28 | 29 | // last player joining the queue is ready by default at /home/runner/work/tf2pickup/tf2pickup/tests/fixtures/launch-game.ts:26:77 at /home/runner/work/tf2pickup/tf2pickup/node_modules/.pnpm/async-mutex@0.5.0/node_modules/async-mutex/index.mjs:162:51 at Semaphore.<anonymous> (/home/runner/work/tf2pickup/tf2pickup/node_modules/.pnpm/async-mutex@0.5.0/node_modules/async-mutex/index.mjs:40:30) at fulfilled (/home/runner/work/tf2pickup/tf2pickup/node_modules/.pnpm/async-mutex@0.5.0/node_modules/async-mutex/index.mjs:8:58)
[chromium] › 30-player-substitutes/01-substitute-self.spec.ts:5:1 › substitute self: tests/30-player-substitutes/01-substitute-self.spec.ts#L1
3) [chromium] › 30-player-substitutes/01-substitute-self.spec.ts:5:1 › substitute self ─────────── Test timeout of 60000ms exceeded while setting up "gameNumber".
unit
The following actions uses Node.js version which is deprecated and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
end to end
The following actions uses Node.js version which is deprecated and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Slow Test: [chromium] › 10-queue/05-late-for-ready-up.spec.ts#L1
[chromium] › 10-queue/05-late-for-ready-up.spec.ts took 1.3m
Slow Test: [chromium] › 10-queue/04-everybody-leaves.spec.ts#L1
[chromium] › 10-queue/04-everybody-leaves.spec.ts took 1.2m
end to end
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
🎭 Playwright Run Summary
5 failed [chromium] › 02-login.spec.ts:3:1 › login ────────────────────────────────────────────────────── [chromium] › 20-game/01-free-players.spec.ts:9:1 › free players when the game ends ───────────── [chromium] › 30-player-substitutes/01-substitute-self.spec.ts:5:1 › substitute self ──────────── [chromium] › 30-player-substitutes/02-substitute-other.spec.ts:5:1 › substitute other ────────── [chromium] › 90-admin/01-force-end-game.spec.ts:5:1 › force end game ─────────────────────────── 1 skipped 10 passed (14.5m)