From 277f4e0f5ef5764d71e58cc8b0df05eb749f7140 Mon Sep 17 00:00:00 2001 From: rot1024 Date: Tue, 1 Jun 2021 15:27:51 +0900 Subject: [PATCH] test: fix e2e test --- .github/workflows/e2e.yml | 5 ++++- cypress/support/commands.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5cc3c5305..40cd1ea83 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -8,6 +8,9 @@ jobs: e2e: name: E2E test runs-on: ubuntu-latest + env: + CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} + if: env.CYPRESS_PROJECT_ID != null steps: - uses: actions/setup-node@v2 with: @@ -44,7 +47,7 @@ jobs: REEARTH_WEB_E2E_USERNAME: ${{ secrets.REEARTH_WEB_E2E_USERNAME }} REEARTH_WEB_E2E_PASSWORD: ${{ secrets.REEARTH_WEB_E2E_PASSWORD }} slack-notification: - if: always() + if: ${{ success() || failure() }} name: Slack Notification needs: - e2e diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 6c29bc72d..ba2f0be79 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -45,7 +45,7 @@ Cypress.Commands.add("init", () => { .then(token => cy.request({ method: "POST", - url: config.api, + url: `${config.api}/graphql`, body: { query: `mutation($userId: ID!, $teamId: ID!, $name: String!, $lang: String!) { deleteMe(input: { userId: $userId }) { userId }