tabvengers / spicy-sections

Creative Commons Zero v1.0 Universal
128 stars 10 forks source link

Issue running tests on macOS #42

Closed jonathantneal closed 2 years ago

jonathantneal commented 2 years ago

Hi there, I’m a long time fan of this project. 👋

I’ve installed the project locally using npm install. Unfortunately, all 14/14 tests are failing for me locally. Would someone be able to help me figure out what I’m doing wrong?

> testcafe firefox test/general.tests.js -e

 Running tests in:
 - Firefox 94.0 / macOS 10.15

 Spicy sections
 ✖ Verify simple affordance updates

   1) Unable to resize the window because the specified size exceeds the screen size. On macOS, a window cannot be larger than the screen.

      Browser: Firefox 94.0 / macOS 10.15

          94 |
          95 |test('Verify simple affordance updates', async t => {
          96 |    await t
          97 |        .maximizeWindow()
          98 |        .expect(heading.innerText).contains("Days")
       >  99 |        .resizeWindow(BREAKPOINTS['tab-bar'], 1080)

It says the issue is my screen size, but according to window.innerWidth I have 1440 and according to the test it needs 1080.

Environment Version
Device MacBook Air (M1, 2020)
Operating System macOS 12.1
Runtime Node.js 16.13.1
Package Manager npm 8.1.3