Skip to content

Commit 968c5bd

Browse files
committed
Simplify login CSS selectors
1 parent 7aba69e commit 968c5bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cypress/support/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ Cypress.Commands.add('login', login);
101101
*/
102102
function loginViaForm(email: string, password: string): void {
103103
// Enter email
104-
cy.get('ds-log-in [data-test="email"]').type(email);
104+
cy.get('[data-test="email"]').type(email);
105105
// Enter password
106-
cy.get('ds-log-in [data-test="password"]').type(password);
106+
cy.get('[data-test="password"]').type(password);
107107
// Click login button
108-
cy.get('ds-log-in [data-test="login-button"]').click();
108+
cy.get('[data-test="login-button"]').click();
109109
}
110110
// Add as a Cypress command (i.e. assign to 'cy.loginViaForm')
111111
Cypress.Commands.add('loginViaForm', loginViaForm);

0 commit comments

Comments
 (0)