Path: blob/master/web/client/tests/e2e/support/commands.js
994 views
// ***********************************************1// This example commands.js shows you how to2// create various custom commands and overwrite3// existing commands.4//5// For more comprehensive examples of custom6// commands please read more here:7// https://on.cypress.io/custom-commands8// ***********************************************9//10//11// -- This is a parent command --12// Cypress.Commands.add("login", (email, password) => { ... })13//14//15// -- This is a child command --16// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })17//18//19// -- This is a dual command --20// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })21//22//23// -- This is will overwrite an existing command --24// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })252627