-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Why do we need this improvement?
The Cypress E2E suite was slow due to:
- Repeated cy.visit() calls
- Overuse of beforeEach() for read-only tests
- A skipped test caused by a nested it block
- Retries enabled during local runs
How will this change help?
- toolspage.cy.js: Replaced beforeEach() with before() (page loaded once instead of 57 times)
~1m52s β ~1s - homepage.cy.js: Split navigation tests from verification tests ~47s β ~28s
- docspage.cy.js: Fixed invalid nested it block so all tests run
- Config:
- Set testIsolation: false
- Added test:e2e:fast (retries=0) for quick local feedback
Screenshots
No response
How could it be implemented/designed?
-
Reduce redundant reloads: Use before() instead of beforeEach() for read-only tests and share page state by disabling test isolation where safe.
-
Optimize test structure: Separate navigation tests from verification-only tests and avoid unnecessary external navigation (assert href instead).
π§ Breaking changes
Yes
π Have you checked for similar open issues?
- I checked and didn't find a similar issue
π’ Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to work on this issue?
Yes I am willing to submit a PR!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To Be Triaged