1.0.3 • Published 3 years ago
dms-ui-widgets v1.0.3
dms-ui
Testing
Testing is done with cypress & cucumber.
Run
yarn cypress:run
This will run cypress and exit with either 0 or 1Run
yarn cypress:open
This will open the cypress gui, which is useful for writing tests
Recording videos and taking screenshots
When running yarn cypress:run
, by default no video is recorded and no
screenshot will be taken.
- Recording videos can be enabled by supplying the
CYPRESS_VIDEO=true
env var. - Taking screenshots can be enabled by supplying the
CYPRESS_SCREENSHOT=true
env var.
Storybook stories for testing
Sometimes it's required to add stateful stories to test certain behavior.
That's why you can add files with the following file name format: *.stories.testing.js
These stories will not be used when generating the docs storybook and can
contain more sophisticated scenarios for testing.