basarat / basarat/typescript-book
Cypress Tests : parent / child / dual commands
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
There are three kinds of commands:
```
// -- This is a parent command --
// Cypress.Commands.add("login", (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
```
Mention these.
Contributor guide
Research direction
The issue names no file, test, or documentation entry point, so first locate the section covering Cypress commands in the TypeScript book. Compare its coverage with the supplied parent, child, and dual command examples; done means all three command kinds are mentioned accurately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cypress, typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100