04-08-landing-page-layout-builder_check-to-add-sections-and-choose-layouts-for-sections.feature
14.2 KiB
Newer
Older
Feature: Landing (Layout Builder) Pages - Check to add sections and choose layouts for sections
As a logged in user with a permission to mange Landing (Layout Builder) pages
I want to be able to add sections with any layouts to the page
So that the "Landing (Layout Builder) page" will show up having the listed section with their content
@javascript @local @development @staging @production
Scenario: Check if a user with a permission to manage Landing page (Layout Builder) content type can add sections with any layouts to the page

Rajab Natshah
committed
Given I am a logged in user with the "Site admin" user

Rajab Natshah
committed
When I go to "/node/add/landing_page_lb"
And I wait
Then I should see "Create Landing page (Layout Builder)"

Rajab Natshah
committed
When I fill in "Automated test landing page" for "Title"
And I fill in "Test Landing page (Layout Builder) description" for "Page description"

Rajab Natshah
committed
And I select "published" from "Save as"

Rajab Natshah
committed
And I press the "Save" button
And I wait

Rajab Natshah
committed
Then I should see "Landing page (Layout Builder) Automated test landing page has been created"

Rajab Natshah
committed
And I should see "This layout builder tool allows you to configure the layout of the main content area."

Rajab Natshah
committed
When I scroll to the bottom of the page
And I wait 1s
Then I should see "Add section at end of layout"
When I click "Add section at end of layout"
And I wait for AJAX to finish
Then I should see "Choose a layout for this section"
And I should see "Bootstrap 1 Col"
And I should see "Bootstrap 2 Cols"
And I should see "Bootstrap 3 Cols"
And I should see "Bootstrap 4 Cols"
And I should see "Bootstrap 6 Cols"

Rajab Natshah
committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
Then I click "Bootstrap 1 Col"
And I wait for AJAX to finish
Then I press the "Add section" button
And I wait for AJAX to finish
Then I click "in Section 2, Col 1 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
When I check the box "Display title"
Then I fill in "Rich text in 1 col section" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquet purus vitae augue lobortis accumsan ut nec nulla. Cras nisi mauris, gravida ac"
When I press the "Add block" button
Then I wait for AJAX to finish
And I scroll to the bottom of the page
And I wait 1s
Then I click "Add section at end of layout"
And I wait for AJAX to finish
Then I click "Bootstrap 2 Cols"
And I wait for AJAX to finish
Then I press the "Add section" button
And I click "in Section 3, Col 1 region"
Then I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
When I click "Rich text"
And I wait for AJAX to finish
Then I check the box "Display title"
Then I fill in "Rich text in 2 cols section, col 1" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquet purus vitae augue lobortis accumsan ut nec nulla. Cras nisi mauris, gravida ac"
And I press the "Add block" button
When I click "in Section 3, Col 2 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
When I click "Rich text"
And I wait for AJAX to finish
Then I check the box "Display title"
Then I fill in "Rich text in 2 cols section, col 2" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed aliquet purus vitae augue lobortis accumsan ut nec nulla. Cras nisi mauris, gravida ac"
Then I press the "Add block" button
And I wait for AJAX to finish
And I scroll to the bottom of the page
And I wait 1s
Then I click "Add section at end of layout"
And I wait for AJAX to finish
Then I click "Bootstrap 3 Cols"
And I wait for AJAX to finish
Then I press the "Add section" button
And I wait for AJAX to finish
Then I click "in Section 4, Col 1 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 3 cols section, col 1" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque."
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 4, Col 2 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 3 cols section, col 2" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque."
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 4, Col 3 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 3 cols section, col 3" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque."
Then I press the "Add block" button
And I wait for AJAX to finish
And I scroll to the bottom of the page
And I wait 1s
Then I click "Add section at end of layout"
And I wait for AJAX to finish
Then I click "Bootstrap 4 Cols"
And I wait for AJAX to finish
Then I press the "Add section" button
And I wait for AJAX to finish
And I click "in Section 5, Col 1 region"
Then I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 4 cols section, col 1" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque."
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 5, Col 2 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 4 cols section, col 2" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque."
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 5, Col 3 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 4 cols section, col 3" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque."
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 5, Col 4 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 4 cols section, col 4" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est, vel malesuada nisl pulvinar ut. Sed vulputate est nec dui finibus, tempus lobortis quam mattis. Fusce facilisis ut nunc ut scelerisque."
Then I press the "Add block" button
And I wait for AJAX to finish
And I scroll to the bottom of the page
And I wait 1s
Then I click "Add section at end of layout"
And I wait for AJAX to finish
Then I click "Bootstrap 6 Cols"
And I wait for AJAX to finish
Then I press the "Add section" button
And I wait for AJAX to finish
Then I click "in Section 6, Col 1 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 6 cols section, col 1" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est"
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 6, Col 2 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 6 cols section, col 2" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est"
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 6, Col 3 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 6 cols section, col 3" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est"
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 6, Col 4 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 6 cols section, col 4" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est"
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 6, Col 5 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 6 cols section, col 5" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est"
Then I press the "Add block" button
And I wait for AJAX to finish
Then I click "in Section 6, Col 6 region"
And I wait for AJAX to finish
Then I click "Create custom block"
And I wait for AJAX to finish
Then I click "Rich text"
And I wait for AJAX to finish
And I check the box "Display title"
Then I fill in "Rich text in 6 cols section, col 6" for "Title"
And I fill in the rich text editor field "Body" with "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia sapien quis tempor placerat. Nulla faucibus rhoncus est"
Then I press the "Add block" button
And I wait for AJAX to finish
When I scroll to the top of the page
And I wait 5s
Then I should see "Save layout"
Then I press the "Save layout" button