Skip to content

(test) accept 1023 or 1023 pixels window width #1834

(test) accept 1023 or 1023 pixels window width

(test) accept 1023 or 1023 pixels window width #1834

Triggered via push February 20, 2024 14:21
Status Failure
Total duration 2m 42s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 notice
electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct: tests/electron.spec.js#L39
1) electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct ───────────────────── Error: expect(received).toMatch(expected) Matcher error: received value must be a string Received has type: number Received has value: 1024 37 | test('Window bounds are correct', async () => { 38 | const { height, width } = await browserWindow.evaluate((browserWindow) => { return { ...browserWindow.getBounds() } }) > 39 | expect(width).toMatch('^102[34]$') | ^ 40 | expect(height).toBe(600) 41 | }) 42 | at /home/runner/work/hero-display/hero-display/tests/electron.spec.js:39:19
Build
Process completed with exit code 1.
🎭 Playwright Run Summary
1 failed electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct ────────────────────── 5 passed (1.5m)