@@ -57,3 +57,40 @@ Feature: Page resources
57
57
Given there is a Page
58
58
When I send a "DELETE" request to the resource "page"
59
59
Then the response status code should be 204
60
+
61
+ @loginAdmin
62
+ Scenario : The page resources can be filtered by reference
63
+ Given there is a Page with the reference "primary"
64
+ And there is a Page with the reference "secondary"
65
+ When I send a "GET" request to "/_/pages?reference=primary"
66
+ Then the response status code should be 200
67
+ And the JSON node "hydra:member" should have "1" elements
68
+ And the JSON node "hydra:member[0].reference" should be equal to "primary"
69
+
70
+ @loginAdmin
71
+ Scenario : The page resources can be filtered by title
72
+ Given there is a Page with the reference "primary" and with the title "primary"
73
+ And there is a Page with the reference "secondary" and with the title "secondary"
74
+ When I send a "GET" request to "/_/pages?title=primary"
75
+ Then the response status code should be 200
76
+ And the JSON node "hydra:member" should have "1" elements
77
+ And the JSON node "hydra:member[0].reference" should be equal to "primary"
78
+
79
+ @loginAdmin
80
+ Scenario : The page resources can be filtered by ui component
81
+ Given there is a Page with the reference "primary" and with the uiComponent "primary"
82
+ And there is a Page with the reference "secondary" and with the uiComponent "secondary"
83
+ When I send a "GET" request to "/_/pages?uiComponent=primary"
84
+ Then the response status code should be 200
85
+ And the JSON node "hydra:member" should have "1" elements
86
+ And the JSON node "hydra:member[0].reference" should be equal to "primary"
87
+
88
+ @loginAdmin
89
+ Scenario : The page resources can be filtered by ui component
90
+ Given there is a Layout
91
+ And there is a Page with the layout resource[layout]
92
+ And there is a Page with the layout resource[layout]
93
+ When I send a "GET" request to "/_/pages?uiComponent=primary"
94
+ Then the response status code should be 200
95
+ And the JSON node "hydra:member" should have "1" elements
96
+ And the JSON node "hydra:member[0].reference" should be equal to "primary"
0 commit comments