mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-22 22:17:55 +00:00
* whtie label revamp * minor changes * updated beta info in copilot docs * renamed gds to ds in overview doc of v2.15 onwards * updated multienv: renamed gds to ds, updated screenshot * updated multienv: app state description * updated superadmin wrt new licensing updates * licensing update: free trial * updates in licensing * changes after review * [docs]updated restapi with bearer auth * Update kubernetes-aks.md * Update openshift.md * Update ecs.md * Update ecs.md * Update kubernetes-gke.md * Update kubernetes.md * Update docker.md * Update docker.md * Update ecs.md * Update google-cloud-run.md * Update kubernetes-aks.md * Update kubernetes-gke.md * Update kubernetes.md * Update openshift.md * Update kubernetes-gke.md * Update kubernetes-aks.md * fixed ecs, removed heroku from 2.15 onwards * updated digitalocean doc * licensing doc changes and location * Update digitalocean.md * Update digitalocean.md * added v2.18.0 --------- Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
1.5 KiB
1.5 KiB
| id | title |
|---|---|
| testing | Testing |
Follow the steps below to setup and run the test specifications using Cypress. We recommend setting up ToolJet locally before proceeding.
Setting up
- Navigate to the
cypress-testsdirectory and enter the following command:npm install
Running Tests
Headed mode
-
To run cypress in headed mode, run the following command:
npm run cy:open -
In headed mode, the user will be able to choose the test specs from the test runner:
Headless mode
- To run cypress in headless mode, run the following command:
npm run cy:run
- For running specific spec in headless mode, run for specific spec
```bash
npm run cy:run -- --spec "cypress/e2e/dashboard/multi-workspace/manageSSO.cy.js
:::caution If some test specs need the environment variables, the user can pass them similar to the following command:
npm run cy:open -- --env='{"pg_host":"localhost","pg_user":"postgres", "pg_password":"postgres"}'
or the user can add env-vars in the cypress.config.js file :::
:::info Check all the Cypress commands here :::