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

Commit

Permalink
test: fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jun 1, 2021
1 parent a8bd0cd commit fd7cf56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/e2e.yml
Expand Up @@ -54,6 +54,7 @@ jobs:
REEARTH_WEB_E2E_TEAM_ID: ${{ secrets.REEARTH_WEB_E2E_TEAM_ID }}
REEARTH_WEB_E2E_USERNAME: ${{ secrets.REEARTH_WEB_E2E_USERNAME }}
REEARTH_WEB_E2E_PASSWORD: ${{ secrets.REEARTH_WEB_E2E_PASSWORD }}
REEARTH_WEB_E2E_SIGNUP_SECRET: ${{ secrets.REEARTH_WEB_E2E_SIGNUP_SECRET }}
slack-notification:
if: ${{ success() || failure() }}
name: Slack Notification
Expand Down
3 changes: 2 additions & 1 deletion cypress/support/commands.ts
Expand Up @@ -49,13 +49,14 @@ Cypress.Commands.add("init", () => {
body: {
query: `mutation($userId: ID!, $teamId: ID!, $name: String!, $lang: String!) {
deleteMe(input: { userId: $userId }) { userId }
signup(input: { userId: $userId, teamId: $teamId }) { user { id } }
signup(input: { userId: $userId, teamId: $teamId, secret: $secret }) { user { id } }
updateMe(input: { name: $name, lang: $lang }) { user { id, name, lang } }
}`,
variables: {
userId: config.userId,
teamId: config.teamId,
name: config.userName,
secret: config.signUpSecret,
lang: "en",
},
},
Expand Down
1 change: 1 addition & 0 deletions cypress/support/config.ts
Expand Up @@ -8,3 +8,4 @@ export const teamId: string = Cypress.env("REEARTH_WEB_E2E_TEAM_ID");
export const authAudience: string = Cypress.env("REEARTH_WEB_AUTH0_AUDIENCE");
export const authClientId: string = Cypress.env("REEARTH_WEB_AUTH0_CLIENT_ID");
export const authUrl: string = Cypress.env("REEARTH_WEB_AUTH0_DOMAIN");
export const signUpSecret: string = Cypress.env("REEARTH_WEB_E2E_SIGNUP_SECRET");

0 comments on commit fd7cf56

Please sign in to comment.