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 List Products functionality #25

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

Add End-to-end tests for List Products functionality #25

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 List Products functionality (https://front.serverest.dev/admin/listarprodutos page).

Ideally, it should perform the following steps:

  • Login as Admin user (you can use openHomepage helper, inside lib/helpers.js)
  • Create a product (using getProductBody helper to get a product with random data)
  • Open /admin/listarprodutos
  • Verify that there is a row with proper product data

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/list-product.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