Watts-Lab / researcher-portal

deliberation lab collaborator tools
0 stars 0 forks source link

Create a Cypress testing suite #26

Closed kepstein23 closed 3 months ago

kepstein23 commented 7 months ago

As a developer, I want to be confident that new features don't break old functionality.

Potential cypress flows/features to test

JamesPHoughton commented 6 months ago

Setup steps:

This is all in place for deliberation-empirica, can copy most of it from there, you may need me to do some of the permissionings and setup on GH and cypress cloud

JamesPHoughton commented 6 months ago

I created a project on cypress cloud, you'll need to add this to the cypress.config.js:

module.exports = {
  projectId: "wxnizr",
  // ...rest of the Cypress project config
}

You'll also need to modify the github actions script (here: https://github.com/Watts-Lab/researcher-portal/blob/main/.github/workflows/cypress.yml) to launch the next server properly for CI testing