Lewati ke konten utama

Test Guidelines Next & Nuxt

Automated testing using CYPRESS

1. pnpm install
2. add test case scenario in folder e2e > {number}-{testcasename}, ex: 1-auth
3. add file for test case {filename.cy.ts}
4. run your website with `pnpm dev`
5. run your automated test with `pnpm run:test`
6. will popup window
7. choose your testing type E2E Testing or Component Testing
8. choose your browser
9. choose the file you want to testing