From 97d25e9ce558350801b3feea36a4985b8432b73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20EVO?= Date: Fri, 1 Sep 2023 19:24:52 +0200 Subject: [PATCH] test: cookie name check was wrong (#102) --- .github/workflows/ci.yml | 2 +- cypress/support/commands.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66b52d2..cff1601 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - site: ["STAGING", "PROD"] + site: ["PROD"] needs: publish-plugin steps: - uses: actions/checkout@v2 diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 92b49f0..dab386f 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -56,12 +56,13 @@ Cypress.Commands.add('roomEnter', (lobbyOnly = false) => { "password": Cypress.env('TEAM_MEMBER_PASSWORD'), "provider": "email_password" }).then((response) => { + expect(response.status).to.eq(200) expect(response.body).to.have.property('data') cy.setCookie('refreshToken', response.body.data.refresh_token) }) visit('/') - cy.getCookie('refresh_token').should('exist') + cy.getCookie('refreshToken').should('exist') // Create session from event