@10up/cypress-wp-utils
    Preparing search index...

    Function login

    • Log a user in to the WordPress dashboard.

      Parameters

      • username: string = 'admin'

        Username of the user

      • password: string = 'password'

        Password of the user

      Returns void

      Use the command without any argument, the admin will be used:

      cy.login()
      

      Use the command with username and password:

      cy.login( 'customer', 'strongpassword')