Skip to content

Commit 3bcf0e8

Browse files
committed
Add failing test
1 parent 01da289 commit 3bcf0e8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

features/graphql/mutation.feature

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Feature: GraphQL mutation support
142142

143143
@createSchema
144144
Scenario: Modify an item through a mutation
145-
Given there are 1 dummy objects
145+
Given there are 1 dummy objects having each 2 relatedDummies
146146
When I send the following GraphQL request:
147147
"""
148148
mutation {
@@ -151,6 +151,13 @@ Feature: GraphQL mutation support
151151
name
152152
description
153153
dummyDate
154+
relatedDummies {
155+
edges {
156+
node {
157+
name
158+
}
159+
}
160+
}
154161
clientMutationId
155162
}
156163
}
@@ -162,6 +169,7 @@ Feature: GraphQL mutation support
162169
And the JSON node "data.updateDummy.name" should be equal to "Dummy #1"
163170
And the JSON node "data.updateDummy.description" should be equal to "Modified description."
164171
And the JSON node "data.updateDummy.dummyDate" should be equal to "2018-06-05T00:00:00+00:00"
172+
And the JSON node "data.updateDummy.relatedDummies.edges[0].node.name" should be equal to "RelatedDummy11"
165173
And the JSON node "data.updateDummy.clientMutationId" should be equal to "myId"
166174

167175
Scenario: Modify an item with composite identifiers through a mutation

0 commit comments

Comments
 (0)