Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

dhis2/ui-widgets

⚠️ dhis2/ui-widgets has moved to dhis2/ui

The package name (@dhis2/ui-widgets) is still available, and will be published from dhis2/ui.


ui-widgets

DHIS2semantic-release

Online docs and demos (latest master build)

Testing

Testing is done with cypress & cucumber.

  • Run yarn cypress:run
    This will run cypress and exit with either 0 or 1

  • Run 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.