@@ -690,6 +690,7 @@ Feature: GraphQL collection support
690
690
fooDummies(page: 1) {
691
691
collection {
692
692
id
693
+ name
693
694
}
694
695
paginationInfo {
695
696
itemsPerPage
@@ -703,8 +704,11 @@ Feature: GraphQL collection support
703
704
And the response should be in JSON
704
705
And the JSON node "data.fooDummies.collection" should have 3 elements
705
706
And the JSON node "data.fooDummies.collection[0].id" should exist
707
+ And the JSON node "data.fooDummies.collection[0].name" should exist
706
708
And the JSON node "data.fooDummies.collection[1].id" should exist
709
+ And the JSON node "data.fooDummies.collection[1].name" should exist
707
710
And the JSON node "data.fooDummies.collection[2].id" should exist
711
+ And the JSON node "data.fooDummies.collection[2].name" should exist
708
712
And the JSON node "data.fooDummies.paginationInfo.itemsPerPage" should be equal to the number 3
709
713
And the JSON node "data.fooDummies.paginationInfo.lastPage" should be equal to the number 2
710
714
And the JSON node "data.fooDummies.paginationInfo.totalCount" should be equal to the number 5
@@ -714,6 +718,7 @@ Feature: GraphQL collection support
714
718
fooDummies(page: 2) {
715
719
collection {
716
720
id
721
+ name
717
722
}
718
723
}
719
724
}
@@ -727,6 +732,7 @@ Feature: GraphQL collection support
727
732
fooDummies(page: 3) {
728
733
collection {
729
734
id
735
+ name
730
736
}
731
737
}
732
738
}
@@ -744,6 +750,7 @@ Feature: GraphQL collection support
744
750
fooDummies(page: 1, itemsPerPage: 2) {
745
751
collection {
746
752
id
753
+ name
747
754
}
748
755
}
749
756
}
@@ -752,13 +759,16 @@ Feature: GraphQL collection support
752
759
And the response should be in JSON
753
760
And the JSON node "data.fooDummies.collection" should have 2 elements
754
761
And the JSON node "data.fooDummies.collection[0].id" should exist
762
+ And the JSON node "data.fooDummies.collection[0].name" should exist
755
763
And the JSON node "data.fooDummies.collection[1].id" should exist
764
+ And the JSON node "data.fooDummies.collection[1].name" should exist
756
765
When I send the following GraphQL request:
757
766
"""
758
767
{
759
768
fooDummies(page: 2, itemsPerPage: 2) {
760
769
collection {
761
770
id
771
+ name
762
772
}
763
773
}
764
774
}
@@ -772,6 +782,7 @@ Feature: GraphQL collection support
772
782
fooDummies(page: 3, itemsPerPage: 2) {
773
783
collection {
774
784
id
785
+ name
775
786
}
776
787
}
777
788
}
0 commit comments