- Issue created by @thejimbirch
Some sites use a passwordless login. While that should be tested, we should also be able to bypass that to simply log in. Adding a drush uli method to login would solve that.
/**
* Logs a user in by their username via drush uli.
*/
Cypress.Commands.add('loginUserByUsername', (username) => {
cy.drush('user-login', [username], { uri: Cypress.env('baseUrl') })
.its('stdout')
.then((url) => {
cy.visit(url);
});
});
Active
Commands