Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
test: update login method
Browse files Browse the repository at this point in the history
  • Loading branch information
jinevo authored Jun 19, 2023
1 parent e5a5a5d commit 1c6c8c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Cypress.Commands.add('roomEnter', (lobbyOnly = false) => {
"email": Cypress.env('TEAM_MEMBER_EMAIL'),
"password": Cypress.env('TEAM_MEMBER_PASSWORD'),
"provider": "email_password"
}).then((response) => {
expect(response.body).to.have.property('data')
cy.setCookie('refreshToken', response.body.data.refresh_token)
})

visit('/')
Expand Down

0 comments on commit 1c6c8c9

Please sign in to comment.