Created
March 28, 2020 00:29
-
-
Save andreybleme/29e71b5acd0be96348b13c47da4deac3 to your computer and use it in GitHub Desktop.
andreybleme.com | Boosting Cypress end-to-end Tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cypress.Commands.add('setPlace', (fieldName, address) => { | |
cy.get(`#${fieldName}`) | |
.type(address) | |
.wait(2000) | |
.type('{downarrow}') | |
.blur(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment