Skip to content
UI widgets for DHIS2
JavaScript Gherkin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dependabot
.github
.storybook
.tx
cypress
docs
i18n
src
.browserslistrc
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.huskyrc.js
.npmrc
.prettierrc.js
CHANGELOG.md
LICENSE
README.md
cypress-cucumber-preprocessor.config.js
cypress.json
d2.config.js
netlify.toml
package.json
polyfills
yarn.lock

README.md

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.

You can’t perform that action at this time.