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

Add API tests for Complete Order and Cancel Order actions #13

Closed
stefanteixeira opened this issue Jun 24, 2022 · 0 comments
Closed

Add API tests for Complete Order and Cancel Order actions #13

stefanteixeira opened this issue Jun 24, 2022 · 0 comments
Assignees

Comments

@stefanteixeira
Copy link
Owner

stefanteixeira commented Jun 24, 2022

Description

Add API tests for:

  • Complete Order (DELETE /carrinhos/concluir-compra)
  • Cancel Order (DELETE /carrinhos/cancelar-compra)

For both actions, make sure to cover the following scenarios:

  • Successful deletion (if a cart exists)
  • Cart not found for this user (if a cart does not exist)

Acceptance Criteria

  • New tests are created in the current cart.api.test.js file
  • Tests are stable and successfully passing on CI
@stefanteixeira stefanteixeira added this to To Do ⌛️ in New features Jun 24, 2022
@uLucasFraga uLucasFraga self-assigned this Jun 24, 2022
@stefanteixeira stefanteixeira moved this from To Do ⌛️ to In Progress 🛠 in New features Aug 2, 2022
@uLucasFraga uLucasFraga moved this from In Progress 🛠 to In Review 👀 in New features Aug 3, 2022
@stefanteixeira stefanteixeira linked a pull request Aug 3, 2022 that will close this issue
4 tasks
@stefanteixeira stefanteixeira moved this from In Review 👀 to Done ✅ in New features Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2 participants