Skip to content

Instantly share code, notes, and snippets.

@andreybleme
Created March 28, 2020 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreybleme/29e71b5acd0be96348b13c47da4deac3 to your computer and use it in GitHub Desktop.
Save andreybleme/29e71b5acd0be96348b13c47da4deac3 to your computer and use it in GitHub Desktop.
andreybleme.com | Boosting Cypress end-to-end Tests
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