-
-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
Description
Is your feature request related to a problem? Please describe.
As a PHLASK developer, I would like to have automated testing of displaying Food sites so that this functionality works consistently throughout any future site development.
Describe the solution you'd like
- Add a Cypress test that performs the following actions in
cypress/e2e/mobile/modals.cy.js- Click on the "Resources" button on the bottom toolbar
- Click on the "Food" button on the resources modal
- Click on one of the taps that appear on the map
- Confirm that the modal that pops up shows the correct name for the location
- Confirm that the modal represents a half-modal
- This can be done by adding a
data-cyattribute to handle the case when the modal is showing as as half or full modal.
- This can be done by adding a
- Expand the modal to a full-modal
- Confirm that the correct description for the location is displayed
- Confirm that the modal represents a full-modal
- This can be done by adding a
data-cyattribute to handle the case when the modal is showing as as half or full modal.
- This can be done by adding a
- If necessary, add
data-cyattributes to resources in order to allow Cypress to target them for clicking/writing/etc.- For an example of how to target elements, see the the
should successfully submit a water site for testingtest in thecypress/e2e/desktop/crowdsourcing.cy.jsfile. - For an example of how components are updated to support the example above, see line 27 of the
src/components/AddResourceModal/ChooseResource.jsxfile.
- For an example of how to target elements, see the the
- When opening a Pull Request for this story, make sure to include a video recording of the completed test to help reviewers.
- When you run tests locally, a video of the test should automatically be recorded in the
cypress/videosfolder.
- When you run tests locally, a video of the test should automatically be recorded in the
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
👀 In review