mirror of
https://github.com/gisktzh/gb3-testcases.git
synced 2026-08-26 10:34:16 +00:00
Read-only mirror of https://github.com/gisktzh/gb3-testcases — Kanton Zürich. Issues & pull requests at the source.
- TypeScript 97.4%
- Dockerfile 2.3%
- Shell 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .husky | ||
| azure-pipelines | ||
| cypress | ||
| cypress-visual-screenshots/baseline | ||
| docker | ||
| postman | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.json | ||
| cypress.config.ts | ||
| cypress.env.json.example | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| tsconfig.json | ||
Cypress/Postman tests for Gb3
Getting Started
Download and install Node.js and npm from https://nodejs.org/. Verify the installation by running the following commands in your command prompt or terminal:
node --version
npm --version
Download and install Git from https://git-scm.com/. Verify the installation by running the following command:
git --version
Build and Test
Open your command prompt or terminal.
Install Cypress using npm:
npm i
Now that Cypress is installed, you can run your tests using the following steps:
Launch Cypress using the following command:
npx cypress open
This will open the Cypress Test Runner. Click on a test file to run the tests in that file or click "Run all specs" to run all tests.
Headless Mode
If you prefer to run Cypress tests in headless mode (without the graphical Test Runner), you can use the following command:
npx cypress run
Modify base URL to test in different environments
Open cypress.config.ts and modify const gb3BaseUrl