Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issue when executing tests #27916

Closed
StephaneDecidela opened this issue Sep 27, 2023 · 3 comments
Closed

Performance issue when executing tests #27916

StephaneDecidela opened this issue Sep 27, 2023 · 3 comments
Labels
stale no activity on this issue for a long period

Comments

@StephaneDecidela
Copy link

Current behavior

When executing tests on our application (angular project with >100k lines), it was stuck many times for 5 to 30 seconds.
A side-effect of this problem is that we have random issue when execution our tests (mainly cypress network intercept nor working).

Investigation done:

  • in run and open modes, remove all "assert" (cy.get, cy.should, cy.find ...). We have many asserts (>100).
    => execution time has a normal duration
  • in open mode, remove the list of actions as described in a comment from https://stackoverflow.com/questions/60368675/cypress-web-pages-are-loading-slower-than-on-a-browser
    => execution time has a normal duration
  • in run mode, patch the cypress_runner.js as described in the stackoverflow comment above
    => execution time has a normal duration
  • execute a memory recording with chrome, the provided snapshot shows a task stuck during 20 second and 98% is relative to "layout" subtasks. Chrome warns that it is a "forced reflow"
CypressPerformanceIssue

Desired behavior

Execution time is almost the same when executing in open mode with unfolding the list of actions, or open mode without unfolding the list of action, or run mode.

Test code to reproduce

Not possible to provide our code source.
It could be due to the fact our application DOM is big.

Cypress Version

13.2.0 (also 12.6.0)

Node version

16.15.0

Operating System

windows 10

Debug Logs

No response

Other

No response

@StephaneDecidela
Copy link
Author

more screenshots from chrome debugger.

task duration
task duration

task stacktraces : it always goes through the verifyUpcomingAssertions
task stacktrace

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Mar 27, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

2 participants