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

Reset backend in between tests #24

Closed
ClFeSc opened this issue Jan 4, 2022 · 2 comments
Closed

Reset backend in between tests #24

ClFeSc opened this issue Jan 4, 2022 · 2 comments
Assignees
Labels
meta Issues mainly related to non-TS stuff (e.g. CI) testing unit, integration and e2e tests
Projects
Milestone

Comments

@ClFeSc
Copy link
Contributor

ClFeSc commented Jan 4, 2022

See #19 (comment)

@Dassderdie Dassderdie added this to To do in BP2021HG1 Jan 5, 2022
@Dassderdie Dassderdie moved this from To do to Backlog in BP2021HG1 Jan 11, 2022
@ClFeSc ClFeSc moved this from Backlog to To do in BP2021HG1 Jan 18, 2022
@Dassderdie Dassderdie added the testing unit, integration and e2e tests label Jan 26, 2022
@ClFeSc
Copy link
Contributor Author

ClFeSc commented Jan 26, 2022

Could we use something like

withExercise(callback: async (exerciseIds: ExerciseIds) => Promise<void>)

that generates an exercise (POST /api/exercise), calls the callback with the response and then deletes the exercise (DELETE /api/exercise)?

@Dassderdie
Copy link
Collaborator

Could we use something like

withExercise(callback: async (exerciseIds: ExerciseIds) => Promise<void>)

that generates an exercise (POST /api/exercise), calls the callback with the response and then deletes the exercise (DELETE /api/exercise)?

Yes, this would be sufficient. I wasn't sure about whether two commands would be the more "cypress" way of doing this, but from my understanding commands should mostly abstract user interactions.

So we can write our own wrapper as you proposed.

@ClFeSc ClFeSc added the meta Issues mainly related to non-TS stuff (e.g. CI) label Jan 29, 2022
@ClFeSc ClFeSc added this to the 2 milestone Feb 1, 2022
BP2021HG1 automation moved this from To do to Done Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Issues mainly related to non-TS stuff (e.g. CI) testing unit, integration and e2e tests
Projects
BP2021HG1
  
Done
Development

No branches or pull requests

2 participants