@@ -62,6 +62,7 @@ Feature: Configuring the theme_boost_union plugin on the "Smart menus" page, man
62
62
And I click on "Create menu" "button"
63
63
And I set the following fields to these values:
64
64
| Title | Links |
65
+ | Menu location (s ) | Main |
65
66
And I click on "Save and return" "button"
66
67
And I should see "Links" in the "smartmenus" "table"
67
68
And ".action-delete" "css_element" should exist in the "smartmenus" "table"
@@ -109,21 +110,41 @@ Feature: Configuring the theme_boost_union plugin on the "Smart menus" page, man
109
110
And I click on ".action-show" "css_element" in the "Links" "table_row"
110
111
Then I should see smart menu "Links" in location "Main, Menu, User, Bottom"
111
112
113
+ @javascript
112
114
Scenario : Smartmenus: Menus: Management - Move an existing smart menu up and down
113
115
When I log in as "admin"
114
116
And I navigate to smart menus
115
117
And I click on "Create menu" "button"
116
118
And I set the following fields to these values:
117
119
| Title | Enrolled courses |
120
+ | Menu location (s ) | Main |
118
121
And I click on "Save and return" "button"
119
122
And I should see "Enrolled courses" in the "smartmenus" "table"
120
123
And I click on "Create menu" "button"
121
124
And I set the following fields to these values:
122
125
| Title | Completed courses |
126
+ | Menu location (s ) | Main |
123
127
And I click on "Save and return" "button"
124
128
And I should see "Completed courses" in the "smartmenus" "table"
125
129
And "Enrolled courses" "table_row" should appear before "Completed courses" "table_row"
126
130
And I click on ".sort-smartmenus-up-action" "css_element" in the "Completed courses" "table_row"
127
131
Then "Enrolled courses" "table_row" should appear after "Completed courses" "table_row"
128
132
And I click on ".sort-smartmenus-up-action" "css_element" in the "Enrolled courses" "table_row"
129
133
And "Enrolled courses" "table_row" should appear before "Completed courses" "table_row"
134
+
135
+ @javascript
136
+ Scenario : Smartmenus: Menus: Management - Make sure that location field is filled
137
+ When I log in as "admin"
138
+ And I navigate to smart menus
139
+ And I click on "Create menu" "button"
140
+ And I set the following fields to these values:
141
+ | Title | Links |
142
+ And I click on "Save and return" "button"
143
+ Then I should see "Required" in the "#fitem_id_location" "css_element"
144
+ And I set the field "Menu location(s)" to "Main"
145
+ And I click on "Save and return" "button"
146
+ Then I should see "Links" in the "smartmenus" "table"
147
+ And I set "Links" smart menu items with the following fields to these values:
148
+ | Title | Info |
149
+ | Menu item type | Heading |
150
+ Then I should see smart menu "Links" in location "Main"
0 commit comments