Skip to content

Commit

Permalink
(test) accept window width of 1023-1024
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Feb 20, 2024
1 parent f5cb9e9 commit 8a9d411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/electron.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ test.describe('Window Loads Properly', async () => {

test('Window bounds are correct', async () => {
const { height, width } = await browserWindow.evaluate((browserWindow) => { return { ...browserWindow.getBounds() } })
expect(width).toBe(1024)
expect(width).toBeGreaterThanOrEqual(1023)
expect(width).toBeLessThanOrEqual(1024)
expect(height).toBe(600)

Check failure on line 41 in tests/electron.spec.js

View workflow job for this annotation

GitHub Actions / Build

electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct

1) electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct ───────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 600 Received: 599 39 | expect(width).toBeGreaterThanOrEqual(1023) 40 | expect(width).toBeLessThanOrEqual(1024) > 41 | expect(height).toBe(600) | ^ 42 | }) 43 | 44 | test('Window title is correct', async () => { at /home/runner/work/hero-display/hero-display/tests/electron.spec.js:41:20
})

Expand Down

0 comments on commit 8a9d411

Please sign in to comment.