Download react-hook-form/cypress/support/commands.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-hook-form/cypress/support/commands.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-hook-form/cypress/support/commands.js
-
curl -L -o commands.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-hook-form/cypress/support/commands.js
838 Bytes
| // *********************************************** | |
| // This example commands.js shows you how to | |
| // create various custom commands and overwrite | |
| // existing commands. | |
| // | |
| // For more comprehensive examples of custom | |
| // commands please read more here: | |
| // https://on.cypress.io/custom-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) => { ... }) | |
| // | |
| // | |
| // -- This will overwrite an existing command -- | |
| // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) | |