question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow Running tests when window doesn't have focus

See original GitHub issue

Not 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:

ok

Yet, if test is relaunched using hot reload, select list takes a long time before closing:

ko

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:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
brian-manncommented, Jun 16, 2018

@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.

0reactions
agualiscommented, Apr 26, 2019

Could this issue be related with this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found