You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/behat/features/paragraph.civictheme_automated_list.render.feature
+10-5
Original file line number
Diff line number
Diff line change
@@ -238,9 +238,11 @@ Feature: Automated list render
238
238
@api@testmode
239
239
Scenario: Automated list, different view from listing type field
240
240
Given "civictheme_page" content:
241
-
| title | created | status | moderation_state |
242
-
| [TEST] Page16 | [relative:-5days] | 1 | published |
243
-
| [TEST] Page17 | [relative:-5days] | 1 | published |
241
+
| title | created | status | moderation_state | field_c_n_vertical_spacing |
242
+
| [TEST] Page16 | [relative:-5days] | 1 | published | both |
243
+
| [TEST] Page17 | [relative:-5days] | 1 | published | both |
244
+
| [TEST] Page18 | [relative:-5days] | 1 | published | top |
245
+
| [TEST] Page19 | [relative:-5days] | 1 | published | top |
244
246
245
247
And "field_c_n_components" in "civictheme_page""node" with "title" of "Test page with Automated list content" has "civictheme_automated_list" paragraph:
246
248
| field_c_p_title | [TEST] Automatedlisttitle |
@@ -260,7 +262,9 @@ Feature: Automated list render
260
262
And I should see an ".ct-list__filters" element
261
263
262
264
# Add a Test view as a list type.
263
-
# This view only shows items older than 2 days and has a Title filter exposed.
265
+
# This view only shows items older than 2 days, having a 'top' vertical
266
+
# spacing (to assert the adjustems via preprocess hook) and has a Title
267
+
# filter exposed.
264
268
When I am logged in as a user with the "Administrator" role
265
269
And I go to "admin/structure/paragraphs_type/civictheme_automated_list/fields/paragraph.civictheme_automated_list.field_c_p_list_type"
266
270
And I fill in the following:
@@ -277,7 +281,8 @@ Feature: Automated list render
277
281
And I press "Save"
278
282
279
283
And I should see 2 ".ct-promo-card" elements
280
-
And I should see 2 ".ct-promo-card.ct-theme-light" elements
284
+
# Preprocess hook overrides the 'item_theme' to be 'dark'.
285
+
And I should see 2 ".ct-promo-card.ct-theme-dark" elements
281
286
And I should not see an ".ct-list__pagination" element
0 commit comments