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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-11-26 13:11:27 +01:00
.husky ts migration 2023-03-03 16:00:17 +01:00
azure-pipelines Update e2e.run.yml for Azure Pipelines 2024-01-15 08:58:27 +00:00
cypress added readme, fixed more tests 2024-01-12 09:56:24 +01:00
cypress-visual-screenshots/baseline update 2023-07-03 13:50:15 +02:00
docker update 2023-07-03 13:50:15 +02:00
postman postman update 2023-05-26 15:31:17 +02:00
.eslintignore add compareScreenshot , test fix 2023-05-22 11:48:27 +02:00
.eslintrc.json ts migration 2023-03-03 16:00:17 +01:00
.gitignore test 2023-03-10 13:52:03 +01:00
.prettierignore ts migration 2023-03-03 16:00:17 +01:00
.prettierrc.json ts migration 2023-03-03 16:00:17 +01:00
cypress.config.ts updated tests 2024-01-10 23:00:31 +01:00
cypress.env.json.example tests refactoring 2023-03-07 16:10:27 +01:00
Dockerfile update 2023-07-03 13:50:15 +02:00
package-lock.json update 2023-07-03 13:50:15 +02:00
package.json add compareScreenshot , test fix 2023-05-22 11:48:27 +02:00
README.md added readme, fixed more tests 2024-01-12 09:30:07 +01:00
renovate.json Update renovate.json 2024-11-26 11:51:56 +01:00
tsconfig.json add compareScreenshot , test fix 2023-05-22 11:48:27 +02:00

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