wrycu/StarWarsFFG-Enhancements

Tests sometimes fail when run interactively without focus

wrycu opened this issue · 4 comments

wrycu commented

Typing into elements sometimes fails when tests are run interactively without leaving the window in focus for the entire time.

@wrycu

I can't replicate the problem locally. The document used by the app is always reporting having focus. I pushed some debug code to bheiskell/issue158. If you don't mind, clone (or just copy the commit contents). When you run cypress interactively, search for the log message in the left side as it scrolls by.

Commit with debug log: 4dabfac

image

wrycu commented

It reports true in both cases (that is, both when it has focus and when it does not.)

Confirmed that we're running the same version of Cypress.exe.

Seems to be an issue with Cypress upstream: cypress-io/cypress#21673

There might be a flag to send, uncertain. In the meantime, we can manually toggle the dev tools to pretend to be in focus.