Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

  • login(username?: string, password?: string): void
  • Log a user in to the WordPress dashboard.

    example

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

    cy.login()
    
    example

    Use the command with username and password:

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

    Parameters

    • username: string = 'admin'

      Username of the user

    • password: string = 'password'

      Password of the user

    Returns void

Generated using TypeDoc