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

[TESTING] Cypress tests refactorization #4032

Closed
wants to merge 21 commits into from
Closed

Conversation

jpelay
Copy link
Member

@jpelay jpelay commented Feb 14, 2023

Description

The cypress tests can be improved further by making some changes:

  • Using data-cy=* selectors instead of id and css classes.
  • Remove waits (by removing waits in the login page I was able to shave off about 2 minutes of testing)
  • Put the tests in a single file and use beforeEach instead of repeating the same line of code over and over again.
  • Use ensureClass instead of createClass to not add hundreds of classes each time we run the tests.

Fixes #4027, fixes #4026

How to test

npx cypress run

@Felienne Felienne closed this Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TESTING] Refactor cypress tests [TESTING] Make cypress tests less deppendent on wait
2 participants