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 81d0ebd commit ea50505
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cypress/support/commands.ts
Expand Up @@ -47,15 +47,13 @@ Cypress.Commands.add("init", () => {
method: "POST",
url: `${config.api}/graphql`,
body: {
query: `mutation($userId: ID!, $teamId: ID!, $name: String!, $lang: String!, $secret: String) {
query: `mutation($userId: ID!, $teamId: ID!, $lang: String, $secret: String) {
deleteMe(input: { userId: $userId }) { userId }
signup(input: { userId: $userId, teamId: $teamId, secret: $secret }) { user { id } }
updateMe(input: { name: $name, lang: $lang }) { user { id, name, lang } }
signup(input: { lang: $lang, userId: $userId, teamId: $teamId, secret: $secret }) { user { id } }
}`,
variables: {
userId: config.userId,
teamId: config.teamId,
name: config.userName,
secret: config.signUpSecret,
lang: "en",
},
Expand Down

0 comments on commit ea50505

Please sign in to comment.