Problem/Motivation

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);
    });
});

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

thejimbirch created an issue.