Merge pull request #21773 from mikewoudenberg/master

Cypress: Adds key to location method and adds timeout property to options
This commit is contained in:
Armando Aguirre
2017-11-28 16:42:56 -08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -12,6 +12,8 @@ cy
.get('.query-button')
.contains('Save Form').should('have.class', 'btn');
cy.location('host');
cy
.get('form')
.find('input')
+2 -1
View File
@@ -249,7 +249,8 @@ declare namespace Cypress {
/**
* @see https://on.cypress.io/api/location
*/
location(options?: Loggable): Chainable;
location(options?: LoggableTimeoutable): Chainable;
location(key: string, options?: LoggableTimeoutable): Chainable;
/**
* @see https://on.cypress.io/api/log