phlask-map icon indicating copy to clipboard operation
phlask-map copied to clipboard

Write unit tests for our crowdsourcing forms

Open gcardonag opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. As a PHLASK developer, I would like to ensure changes to the crowdsourcing components do not affect the ability for users to successfully submit taps of any type.

Describe the solution you'd like In order to verify this for all commits in our repository, we would like to add a new test called crowdsourcing-form.js under this location: https://github.com/phlask/phlask-map/tree/develop/cypress/integration

For guidance on how to write the test, see:

  • The official guide from Cypress: https://docs.cypress.io/guides/getting-started/writing-your-first-test
  • One of our previous tests: https://github.com/phlask/phlask-map/blob/develop/cypress/integration/water-tap-viewing.spec.js

Describe alternatives you've considered N/A

Additional context N/A

gcardonag avatar Sep 14 '21 23:09 gcardonag

Any idea how can I run the cypress run command here ? I am trying to run the existing cypress tests by running cypress run command. It is saying this error: Could not start Xvfb. Install XVFB and run Cypress again

mandyshri101 avatar Oct 10 '23 16:10 mandyshri101

Replacing this ticket with the following ones that break this task out a bit more #467 #468 #469 #470 #471 #472 @mandyshri101 feel free to take any of these to continue developing crowdsourcing tests

gcardonag avatar Jul 08 '24 19:07 gcardonag