cypress-example-kitchensink
Advanced tools
Comparing version 0.7.1-dev.20170910.193949 to 0.8.0-dev.20170910.200132
// *********************************************** | ||
// The commands.js file is a great place to | ||
// modify existing commands and create custom | ||
// commands for use throughout your tests. | ||
// This example commands.js shows you how to | ||
// create various custom commands and overwrite | ||
// existing commands. | ||
// | ||
// You can read more about custom commands here: | ||
// https://on.cypress.io/commands | ||
// For more comprehensive examples of custom | ||
// commands please read more here: | ||
// https://on.cypress.io/custom-commands | ||
// *********************************************** | ||
// | ||
// Cypress.Command.add("login", function(email, password){ | ||
// var email = email || "joe@example.com" | ||
// var password = password || "foobar" | ||
// | ||
// var log = Cypress.log({ | ||
// name: "login", | ||
// message: [email, password], | ||
// onConsole: function(){ | ||
// return { | ||
// email: email, | ||
// password: password | ||
// } | ||
// } | ||
// }) | ||
// -- This is a parent command -- | ||
// Cypress.Commands.add("login", (email, password) => { ... }) | ||
// | ||
// cy.visit("/login", {log: false}) | ||
// cy.contains("Log In", {log: false}) | ||
// cy.get("#email", {log: false}) | ||
// .type(email, {log: false}) | ||
// cy.get("#password", {log: false}) | ||
// .type(password, {log: false}) | ||
// cy.get("button", {log: false}) | ||
// .click({log: false}) // this should submit the form | ||
// cy.get("h1", {log: false}) | ||
// .contains("Dashboard", {log: false}) // we should be on the dashboard now | ||
// cy.url({log: false}) | ||
// .should("match", /dashboard/, {log: false}) | ||
// .then(function(){ | ||
// log.snapshot().end() | ||
// }) | ||
// }) | ||
// | ||
// -- 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 is will overwrite an existing command -- | ||
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) |
// *********************************************************** | ||
// This file is loaded automatically before other test files. | ||
// This example support/index.js is processed and | ||
// loaded automatically before your test files. | ||
// | ||
@@ -15,9 +16,6 @@ // This is a great place to put global configuration and | ||
// Import commands.js and defaults.js | ||
// using ES2015 syntax: | ||
import './commands' | ||
import './defaults' | ||
// Import commands.js using ES2015 syntax: | ||
import "./commands" | ||
// Alternatively you can use CommonJS syntax: | ||
// require("./commands") | ||
// require("./defaults") |
{ | ||
"name": "cypress-example-kitchensink", | ||
"version": "0.7.1-dev.20170910.193949", | ||
"version": "0.8.0-dev.20170910.200132", | ||
"description": "This is an example app used to showcase Cypress.io testing. For a full reference of our documentation, go to docs.cypress.io", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2265248
55
2701