Fix Cypher test by correcting syntax of GraphQL report mutation

This commit is contained in:
Wolfgang Huß 2019-10-10 08:15:17 +02:00
parent 0b549a9dea
commit b41f340ad6
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ describe('report', () => {
// because of the template `${returnedObject}` the 'gql' tag from 'jest/helpers' is not working here
reportMutation = `
mutation($resourceId: ID!, $reasonCategory: String!, $reasonDescription: String!) {
report( resourceId: $resourceId, reasonCategory: $reasonCategory, reasonDescription: $reasonDescription) ${returnedObject}
report(resourceId: $resourceId, reasonCategory: $reasonCategory, reasonDescription: $reasonDescription) ${returnedObject}
}
`
client = new GraphQLClient(host, {

View File

@ -127,7 +127,7 @@ Given('somebody reported the following posts:', table => {
cy.factory()
.create('User', submitter)
.authenticateAs(submitter)
.mutate(`mutation(resourceId: ID!, reasonCategory: String!, reasonDescription: String!) {
.mutate(`mutation($resourceId: ID!, $reasonCategory: String!, $reasonDescription: String!) {
report(resourceId: $resourceId, reasonCategory: $reasonCategory, reasonDescription: $reasonDescription) {
id
}