https://cypress.io logo
This pointed me in the right direction. thank you....
# e2e-testing
f
This pointed me in the right direction. thank you. The command ended up looking like:
Copy code
js
Cypress.Commands.add('login', () => {
  const data = {
    username: Cypress.env('TEST_USERNAME'),
    password: Cypress.env('TEST_USER_PASSWORD'),
  }
  cy.window().then((window) => {
    return window.nuxtApp.$auth.loginWith('login', { data })
  })
})
And I use it like:
Copy code
js
cy.login().then(() => {})