Slow Running tests when window doesn't have focus
See original GitHub issueNot sure it it is a bug, or a misunderstanding from mine.
Current behavior:
When testing a MaterialUI component, I got some trouble with hot reloading. If I refresh my browser with F5
, my code behaves correctly:
Yet, if test is relaunched using hot reload, select list takes a long time before closing:
Desired behavior:
I would expect the behavior to be the same between fresh refresh or hot reload.
Steps to reproduce:
I created a repository to reproduce the issue: https://github.com/jpetitcolas/cypress-bug
Clone it, then launch the React app and open Cypress:
git clone https://github.com/jpetitcolas/cypress-bug.git
npm install
npm start
# in another term
npm run cypress
Then, comment or uncomment the following line to let browser to hot reload.
Versions
- Cypress: 3.0.1
- OS: Linux Mint 18
- Chrome: Version 66.0.3359.139 (Official Build) (64-bit)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
9 Ways To Make Slow Tests Faster - Semaphore CI
At Semaphore, we've seen our fair share of tests and have identified 9 ways to make your slow tests faster.
Read more >How Slow Is Too Slow to Run Your Tests? - Dev Tester
Like flakiness, slow tests can become a "broken window". For instance, a team doesn't pay much attention to a couple of slow tests,...
Read more >My application runs faster when it is not focused than ... - Reddit
Imagine a video all choppy while on focus, as soon as you click out of the windows the video runs at fool speed....
Read more >Running test in Test Explorer loses focus to Output tool window
1. The key here is to have Test Explorer docked in the same tab group as Output. 2. Run a test in Test...
Read more >Check if window has focus - Stack Overflow
Problem: if the user loses focus before the page loads, even if I do if(isonfocus==true) it will return true, even though the window...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jbinto we’re actually aware of the root issue and have already fixed it in a local branch. This will get released with the next patch update.
Could this issue be related with this?