A node package that powers automated testing of REDCap in Cypress. This library is utilized by the REDCap Cypress Developer Toolkit. The Cypress step definitions defined here are utilized by the toolkit and its related repos.
We have started creating unit tests for some step definitions to ensure that they perform the expected actions. We are currently prioritizing steps that verify the presence or absence of elements on the screen, as that type of step has the potential to fail silently.
- Install the Coverage Gutters extension in VS Code
- Run
./run.sh, then run a feature (e.g.visibility.cy.js) - Run the
Coverage Gutters: Display Coveragecommand in VS Code to see code coverage.