Skip to content

Commit dc50117

Browse files
committed
fix(test): fix failing Cypress E2E test after GraphQL changes
1 parent 11cc71c commit dc50117

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/cypress/integration/example6.spec.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('Example 6 - GraphQL Grid', () => {
5757
{field:"gender",operator:EQ,value:"male"},{field:"name",operator:Contains,value:"JohnDoe"},
5858
{field:"company",operator:IN,value:"xyz"},{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}
5959
],locale:"en",userId:123){
60-
totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
60+
totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
6161
});
6262
});
6363

@@ -75,7 +75,7 @@ describe('Example 6 - GraphQL Grid', () => {
7575
filterBy:[
7676
{field:"gender",operator:EQ,value:"male"},{field:"name",operator:Contains,value:"JohnDoe"},
7777
{field:"company",operator:IN,value:"xyz"},{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}
78-
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
78+
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
7979
});
8080
});
8181

@@ -93,7 +93,7 @@ describe('Example 6 - GraphQL Grid', () => {
9393
filterBy:[
9494
{field:"gender",operator:EQ,value:"male"},{field:"name",operator:Contains,value:"JohnDoe"},
9595
{field:"company",operator:IN,value:"xyz"},{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}
96-
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
96+
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
9797
});
9898
});
9999

@@ -115,7 +115,7 @@ describe('Example 6 - GraphQL Grid', () => {
115115
{field:"company",operator:IN,value:"xyz"},
116116
{field:"finish",operator:GE,value:"${presetLowestDay}"},
117117
{field:"finish",operator:LE,value:"${presetHighestDay}"}
118-
],locale:"en",userId:123) { totalCount, nodes { id,name,gender,company,billing{address{street,zip}},finish } } }`));
118+
],locale:"en",userId:123) { totalCount, nodes { id,name,gender,company,billing{address{zip,street}},finish } } }`));
119119
});
120120
});
121121

@@ -134,7 +134,7 @@ describe('Example 6 - GraphQL Grid', () => {
134134
filterBy:[
135135
{field:"gender",operator:EQ,value:"male"},{field:"name",operator:Contains,value:"JohnDoe"},
136136
{field:"company",operator:IN,value:"xyz"},{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}
137-
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
137+
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
138138
});
139139
});
140140

@@ -154,7 +154,7 @@ describe('Example 6 - GraphQL Grid', () => {
154154
filterBy:[
155155
{field:"gender",operator:EQ,value:"male"},{field:"name",operator:Contains,value:"JohnDoe"},
156156
{field:"company",operator:IN,value:"xyz"},{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}
157-
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
157+
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
158158
});
159159
});
160160

@@ -185,7 +185,7 @@ describe('Example 6 - GraphQL Grid', () => {
185185
filterBy:[
186186
{field:"gender",operator:EQ,value:"male"},{field:"company",operator:IN,value:"xyz"},
187187
{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}
188-
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
188+
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
189189
});
190190
});
191191

@@ -215,7 +215,7 @@ describe('Example 6 - GraphQL Grid', () => {
215215
filterBy:[
216216
{field:"gender",operator:EQ,value:"male"},{field:"company",operator:IN,value:"xyz"},
217217
{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}
218-
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
218+
],locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
219219
});
220220
});
221221

@@ -244,7 +244,7 @@ describe('Example 6 - GraphQL Grid', () => {
244244
expect(text).to.eq(removeSpaces(`query{users(first:30,offset:0,
245245
orderBy:[{field:"name",direction:ASC},{field:"company",direction:DESC}],
246246
filterBy:[{field:"gender",operator:EQ,value:"male"},{field:"company",operator:IN,value:"xyz"}],
247-
locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
247+
locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
248248
});
249249
});
250250

@@ -257,7 +257,7 @@ describe('Example 6 - GraphQL Grid', () => {
257257
cy.get('[data-test=graphql-query-result]')
258258
.should(($span) => {
259259
const text = removeSpaces($span.text()); // remove all white spaces
260-
expect(text).to.eq(removeSpaces(`query{users(first:30,offset:0,locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
260+
expect(text).to.eq(removeSpaces(`query{users(first:30,offset:0,locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
261261
});
262262
});
263263

@@ -279,7 +279,7 @@ describe('Example 6 - GraphQL Grid', () => {
279279
const text = removeSpaces($span.text()); // remove all white spaces
280280
expect(text).to.eq(removeSpaces(`query{users(first:30,offset:0,
281281
orderBy:[{field:"name",direction:ASC}],
282-
locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
282+
locale:"en",userId:123){totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
283283
});
284284
});
285285

@@ -325,7 +325,7 @@ describe('Example 6 - GraphQL Grid', () => {
325325
filterBy:[{field:"gender",operator:EQ,value:"female"},{field:"name",operator:StartsWith,value:"Jane"},
326326
{field:"company",operator:IN,value:"acme"},{field:"billing.address.zip",operator:GE,value:"11"},
327327
{field:"finish",operator:GE,value:"${presetLowestDay}"},{field:"finish",operator:LE,value:"${presetHighestDay}"}],locale:"en",userId:123)
328-
{totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
328+
{totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
329329
});
330330
});
331331

@@ -362,7 +362,7 @@ describe('Example 6 - GraphQL Grid', () => {
362362
const text = removeSpaces($span.text()); // remove all white spaces
363363
expect(text).to.eq(removeSpaces(`query{users(first:30,offset:0,
364364
orderBy:[{field:"billing.address.zip",direction:DESC},{field:"company",direction:ASC}],locale:"en",userId:123){
365-
totalCount,nodes{id,name,gender,company,billing{address{street,zip}},finish}}}`));
365+
totalCount,nodes{id,name,gender,company,billing{address{zip,street}},finish}}}`));
366366
});
367367
});
368368
});

0 commit comments

Comments
 (0)