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 End-to-end tests for Delete User functionality #27

Open
stefanteixeira opened this issue Aug 1, 2022 · 0 comments
Open

Add End-to-end tests for Delete User functionality #27

stefanteixeira opened this issue Aug 1, 2022 · 0 comments

Comments

@stefanteixeira
Copy link
Owner

stefanteixeira commented Aug 1, 2022

Description

Add End-to-end tests for Delete User functionality (accessible from https://front.serverest.dev/admin/listarusuarios page).

Ideally, it should perform the following steps:

  • Login as Admin user
  • Create a dummy user (tip: use the API helper for that 💡 , but remember to point the request to ServeRest Production API)
  • Open /admin/listarusuarios
  • Click on Delete button for the user you created
  • Verify that the user is not visible on the list

Acceptance Criteria

  • Tests are properly using Playwright's Locator API (tip: create-product.e2e.test.js for a similar example of Locator usage)
  • Tests are added in a proper test file, such as tests/e2e/delete-user.e2e.test.js
@stefanteixeira stefanteixeira added this to To Do ⌛️ in New features Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
New features
To Do ⌛️
Development

No branches or pull requests

1 participant