Skip to content
/ admin Public

Heseya's official admin dashboard

License

Notifications You must be signed in to change notification settings

heseya/admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heseya Store Admin Dashboard

Recommended IDE Plugin: Volar

Project setup

$ yarn

$ cp .env.example .env

Compiles and hot-reloads for development

$ yarn dev

Compiles and minifies for production

$ yarn build

Lints and fixes files

$ yarn lint

Customize configuration

See Configuration Reference.

End-to-end testing

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

Best practices

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.

Helper methods

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.

License

FOSSA Status