Recommended IDE Plugin: Volar
$ yarn
$ cp .env.example .env
$ yarn dev
$ yarn build
$ yarn lint
E2E tests are written and run using Cypress. In order to run them, just execute the command
$ yarn test:e2e
The Cypress interface will then be launched to enable testing.
To run all tests without an interface, run the command
$ yarn test:e2e --headless
All tests should be written in Typescript.
We try to stick to the practices described in Cypress documentation, with particular reference to the rule recommending selection of elements by means of attributes data-cy
rather than id
, class
, or HTML tags.
Name | Description |
---|---|
cy.dataCy(value: string) |
The equivalent of cy.get() , which automatically finds an element using its attribute data-cy |
cy.login(email?: string, password?: string) |
Automatically carries out the user login procedure. |