We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aba69e commit 968c5bdCopy full SHA for 968c5bd
1 file changed
cypress/support/commands.ts
@@ -101,11 +101,11 @@ Cypress.Commands.add('login', login);
101
*/
102
function loginViaForm(email: string, password: string): void {
103
// Enter email
104
- cy.get('ds-log-in [data-test="email"]').type(email);
+ cy.get('[data-test="email"]').type(email);
105
// Enter password
106
- cy.get('ds-log-in [data-test="password"]').type(password);
+ cy.get('[data-test="password"]').type(password);
107
// Click login button
108
- cy.get('ds-log-in [data-test="login-button"]').click();
+ cy.get('[data-test="login-button"]').click();
109
}
110
// Add as a Cypress command (i.e. assign to 'cy.loginViaForm')
111
Cypress.Commands.add('loginViaForm', loginViaForm);
0 commit comments