Skip to content
Snippets Groups Projects
Commit 290d91e6 authored by Ziwei Wang's avatar Ziwei Wang Committed by Adrien Béraud
Browse files

Chore: Document the declaration file for cypress custom commands

Change-Id: If9c508a56d3818c2c57aaef7d1acfd801bedb155
parent 7c84a75f
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
- [Prerequisites](#prerequisites)
- [Test Platforms](#test-platforms)
- [Test Environment Variables](#test-environment-variables)
- [Custom Commands](#custom-commands)
- [Test Flow](#test-flow)
- [Success Login](#success-login)
- [Success Logout](#success-logout)
......@@ -39,6 +40,10 @@ Environment variables can be different across different machines. Machine specif
Before running any tests, make sure all the variables are set correctly in `cypress.env.json`. Refer to `cypress.env.example.json` for what variables are needed.
## Custom Commands
Cypress allows custom commands to be added via `support/command.ts`. However, an extra step is required for a TypeScript project like this one. The Cypress interface must be extended for TypeScript to correctly infer the types when adding a custom command. See `support/cypress.d.ts` for more details.
## Test Flow
---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment