You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oddly enough, if you activate the browser window after the focus() method has been called, but before the test timeout occurs, it will pass. Looks like something's being queued up for when the browser is activated in that case.
Current behavior:
Try the following test:
During the
cy.wait
, try either giving the browser focus, or giving another application focus. The test will pass/fail depending on this.Desired behavior:
I think that focus behavior should not be this flaky. I frequently use
cypress open
and am typing in my editor while tests are running.Steps to reproduce: (app code and test code)
https://stackblitz.com/edit/typescript-625eku?file=index.ts
Versions
3.1.5
The text was updated successfully, but these errors were encountered: