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

EPIC: add user flow e2e tests #187

Open
11 of 20 tasks
alishaevn opened this issue Feb 7, 2023 · 3 comments
Open
11 of 20 tasks

EPIC: add user flow e2e tests #187

alishaevn opened this issue Feb 7, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@alishaevn
Copy link
Contributor

alishaevn commented Feb 7, 2023

story

setup end to end tests, which emulate user behavior, with cypress.

acceptance criteria

the following behaviors are tested:

  • Authentication
    • a user can sign in
    • a user can sign out
    • the header shows "Sign In" for an unauthenticated user
    • the header shows "Sign Out" for an authenticated user
  • Navigation
    ** may rethink these and add a single e2e test that just navigates to every route?
    • a user can navigate to "/browse"
    • a user can navigate to "/requests"
  • Browsing (which is only a "search" in the mvp) Refactor Browse Page tests & add for page #251
  • Viewing all requests e2e test: requests user flow #192
    • a signed in user sees their requests, if they have any
    • a signed in user sees the correct "no requests" response if they don't have any requests
    • a signed out user is unauthorized to see requests
  • Viewing a single request e2e test: individual request page #218
    • a signed in user can view an individual request page
    • a signed in user can view related documents
    • a signed in user can send a message to the supplier
  • Creating a new request note: this will be the only true e2e test that doesn't use mock data
    • a signed in user can create a new ware request (from the browse and home pages)
    • a signed in user can create a new blank request (from the requests page)

resources

@alishaevn alishaevn converted this from a draft issue Feb 7, 2023
@alishaevn alishaevn moved this to Ready for Development in webstore Feb 7, 2023
@alishaevn alishaevn changed the title add e2e tests EPIC: add e2e tests Feb 8, 2023
@alishaevn
Copy link
Contributor Author

alishaevn commented Feb 15, 2023

@summer-cook what do you think about the new acceptance criteria? separating the tests into their features, not their components.

@summer-cook
Copy link
Contributor

summer-cook commented Feb 15, 2023

@alishaevn sure, that works - I added some for featured services too, but maybe they should be unit tests? Although we want to check that they are linking to the correct request page, which then makes me think those should be e2e

@alishaevn
Copy link
Contributor Author

@summer-cook

I added some for featured services too, but maybe they should be unit tests?

correct. testing whether they show on the page should be a unit test

we want to check that they are linking to the correct request page

this feature is documented in the first checkbox under "creating a new request"
Image

@summer-cook summer-cook changed the title EPIC: add e2e tests EPIC: add user flow e2e tests Feb 28, 2023
@summer-cook summer-cook moved this from Ready for Development to In Development in webstore Mar 3, 2023
@summer-cook summer-cook moved this from In Development to Ready for Development in webstore Mar 3, 2023
@alishaevn alishaevn removed the status in webstore Mar 6, 2023
@alishaevn alishaevn removed this from webstore Mar 6, 2023
@alishaevn alishaevn added the good first issue Good for newcomers label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

2 participants