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

Make Cypress tests independent from each other #1272

Closed
pascal-holy opened this issue Mar 17, 2021 · 2 comments · Fixed by #1317
Closed

Make Cypress tests independent from each other #1272

pascal-holy opened this issue Mar 17, 2021 · 2 comments · Fixed by #1317
Assignees
Labels

Comments

@pascal-holy
Copy link
Contributor

We can use https://docs.cypress.io/api/plugins/before-run-api.html#Log-the-browser-and-the-number-of-specs-that-will-be-run to set up the env before running the tests. We need to:

  1. create a user
  2. connect a chatplugin channel
  3. create a conversation
@pascal-holy pascal-holy added this to the Integration Testing milestone Mar 17, 2021
@ogbeche77 ogbeche77 self-assigned this Mar 17, 2021
@pascal-holy
Copy link
Contributor Author

So I now think we should not use requests to set up test contexts. As discussed with @lucapette it is better to duplicate the test code so that every test sets up the context through the UI so they are proper integration tests.
Also, @ogbeche77 if you do it please also fix the create_tag test in a way that you can run it multiple multiple times. My suggestion would be to delete the tag after you verified that it exists.

@ogbeche77
Copy link
Contributor

@pascal-airy Great idea, deleting the tag after it has been created should give us the possibility to re-run the test multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants