You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As a PHLASK developer, I would like to have automated testing of navigating to the "About Us" view in the sidebar 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/menuNavigation.cy.js
Click on the "Sidebar"/hamburger button on the top toolbar
Click on the "About PHLASK" option on the menu
Confirm that the top header text in the sidebar shows "About PHLASK"
If necessary, add data-cy attributes 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 testing test in the cypress/e2e/desktop/crowdsourcing.cy.js file.
For an example of how components are updated to support the example above, see line 27 of the src/components/AddResourceModal/ChooseResource.jsx file.
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/videos folder.
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
As a PHLASK developer, I would like to have automated testing of navigating to the "About Us" view in the sidebar so that this functionality works consistently throughout any future site development.
Describe the solution you'd like
cypress/e2e/mobile/menuNavigation.cy.js
data-cy
attributes to resources in order to allow Cypress to target them for clicking/writing/etc.should successfully submit a water site for testing
test in thecypress/e2e/desktop/crowdsourcing.cy.js
file.src/components/AddResourceModal/ChooseResource.jsx
file.cypress/videos
folder.Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: