Last active
May 3, 2018 16:45
-
-
Save strass/6d2785856fbcbb8745ffb554249da58f to your computer and use it in GitHub Desktop.
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
// Doesnt work (puts everything in password field): | |
const emailField = cy.getByLabelText('Email Address'); | |
const passwordField = cy.getByLabelText('Password'); | |
emailField.type('[email protected]'); | |
passwordField.type('password01'); | |
// Works (types in correct inputs): | |
const emailField = cy.getByLabelText('Email Address'); | |
emailField.type('[email protected]'); | |
const passwordField = cy.getByLabelText('Password'); | |
passwordField.type('password01'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be written like:
That's more idiomatic cypress.