@@ -106,7 +106,6 @@ Feature: GraphQL mutation support
106
106
And the JSON node "data.createDummy.arrayData[1]" should be equal to baz
107
107
And the JSON node "data.createDummy.clientMutationId" should be equal to "myId"
108
108
109
- @dropSchema
110
109
Scenario : Delete an item through a mutation
111
110
When I send the following GraphQL request:
112
111
"""
@@ -123,7 +122,6 @@ Feature: GraphQL mutation support
123
122
And the JSON node "data.deleteFoo.id" should be equal to "/foos/1"
124
123
And the JSON node "data.deleteFoo.clientMutationId" should be equal to "anotherId"
125
124
126
- @createSchema
127
125
@dropSchema
128
126
Scenario : Delete an item with composite identifiers through a mutation
129
127
Given there are Composite identifier objects
@@ -143,29 +141,29 @@ Feature: GraphQL mutation support
143
141
And the JSON node "data.deleteCompositeRelation.clientMutationId" should be equal to "myId"
144
142
145
143
@createSchema
146
- @dropSchema
147
144
Scenario : Modify an item through a mutation
148
- Given there are 1 foo objects with fake names
145
+ Given there are 1 dummy objects
149
146
When I send the following GraphQL request:
150
147
"""
151
148
mutation {
152
- updateFoo (input: {id: "/foos /1", bar : "Modified description.", clientMutationId: "myId"}) {
149
+ updateDummy (input: {id: "/dummies /1", description : "Modified description.", dummyDate: "2018-06-05 ", clientMutationId: "myId"}) {
153
150
id
154
151
name
155
- bar
152
+ description
153
+ dummyDate
156
154
clientMutationId
157
155
}
158
156
}
159
157
"""
160
158
Then the response status code should be 200
161
159
And the response should be in JSON
162
160
And the header "Content-Type" should be equal to "application/json"
163
- And the JSON node "data.updateFoo.id" should be equal to "/foos/1"
164
- And the JSON node "data.updateFoo.name" should be equal to "Hawsepipe"
165
- And the JSON node "data.updateFoo.bar" should be equal to "Modified description."
166
- And the JSON node "data.updateFoo.clientMutationId" should be equal to "myId"
161
+ And the JSON node "data.updateDummy.id" should be equal to "/dummies/1"
162
+ And the JSON node "data.updateDummy.name" should be equal to "Dummy #1"
163
+ And the JSON node "data.updateDummy.description" should be equal to "Modified description."
164
+ And the JSON node "data.updateDummy.dummyDate" should be equal to "2018-06-05T00:00:00+00:00"
165
+ And the JSON node "data.updateDummy.clientMutationId" should be equal to "myId"
167
166
168
- @createSchema
169
167
Scenario : Modify an item with composite identifiers through a mutation
170
168
Given there are Composite identifier objects
171
169
When I send the following GraphQL request:
0 commit comments