Skip to content

Commit 5043113

Browse files
committed
Upgrade: Fix Behat tests which broke on Moodle 5.0
1 parent f28d90f commit 5043113

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changes
66

77
### Unreleased
88

9+
* 2025-04-14 - Upgrade: Fix Behat tests which broke on Moodle 5.0
910
* 2025-04-14 - Prepare compatibility for Moodle 5.0.
1011

1112
### v4.5-r1

tests/behat/local_resort_courses.feature

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Feature: Using the local_resort_courses plugin
2828
And I am on course index
2929
And I follow "Series"
3030
And "House M.D." "link" should appear before "The X Files" "link"
31-
And I click on "More" "button"
32-
And I click on "Add a new course" "link"
31+
And I open the action menu in "region-main" "region"
32+
And I choose "Add a new course" in the open action menu
3333
And I set the following fields to these values:
3434
| Course full name | Lucifer |
3535
| Course short name | lucifer |
@@ -48,8 +48,8 @@ Feature: Using the local_resort_courses plugin
4848
And I am on course index
4949
And I follow "Series"
5050
And "House M.D." "link" should appear before "The X Files" "link"
51-
And I click on "More" "button"
52-
And I click on "Add a new course" "link"
51+
And I open the action menu in "region-main" "region"
52+
And I choose "Add a new course" in the open action menu
5353
And I set the following fields to these values:
5454
| Course full name | Lucifer |
5555
| Course short name | lucifer |
@@ -68,8 +68,8 @@ Feature: Using the local_resort_courses plugin
6868
And I am on course index
6969
And I follow "Series"
7070
And "House M.D." "link" should appear before "The X Files" "link"
71-
And I click on "More" "button"
72-
And I click on "Add a new course" "link"
71+
And I open the action menu in "region-main" "region"
72+
And I choose "Add a new course" in the open action menu
7373
And I set the following fields to these values:
7474
| Course full name | Lucifer |
7575
| Course short name | lucifer |
@@ -88,8 +88,8 @@ Feature: Using the local_resort_courses plugin
8888
And I am on course index
8989
And I follow "Series"
9090
And "House M.D." "link" should appear before "The X Files" "link"
91-
And I click on "More" "button"
92-
And I click on "Add a new course" "link"
91+
And I open the action menu in "region-main" "region"
92+
And I choose "Add a new course" in the open action menu
9393
And I set the following fields to these values:
9494
| Course full name | Lucifer |
9595
| Course short name | lucifer |
@@ -108,8 +108,8 @@ Feature: Using the local_resort_courses plugin
108108
And I am on course index
109109
And I follow "Series"
110110
And "House M.D." "link" should appear before "The X Files" "link"
111-
And I click on "More" "button"
112-
And I click on "Add a new course" "link"
111+
And I open the action menu in "region-main" "region"
112+
And I choose "Add a new course" in the open action menu
113113
And I set the following fields to these values:
114114
| Course full name | Lucifer |
115115
| Course short name | lucifer |
@@ -129,8 +129,8 @@ Feature: Using the local_resort_courses plugin
129129
And I am on course index
130130
And I follow "Series"
131131
And "House M.D." "link" should appear before "The X Files" "link"
132-
And I click on "More" "button"
133-
And I click on "Add a new course" "link"
132+
And I open the action menu in "region-main" "region"
133+
And I choose "Add a new course" in the open action menu
134134
And I set the following fields to these values:
135135
| Course full name | Lucifer |
136136
| Course short name | lucifer |
@@ -150,8 +150,8 @@ Feature: Using the local_resort_courses plugin
150150
And I am on course index
151151
And I follow "Series"
152152
And "House M.D." "link" should appear before "The X Files" "link"
153-
And I click on "More" "button"
154-
And I click on "Add a new course" "link"
153+
And I open the action menu in "region-main" "region"
154+
And I choose "Add a new course" in the open action menu
155155
And I set the following fields to these values:
156156
| Course full name | Lucifer |
157157
| Course short name | lucifer |
@@ -171,8 +171,8 @@ Feature: Using the local_resort_courses plugin
171171
And I am on course index
172172
And I follow "Series"
173173
And "House M.D." "link" should appear before "The X Files" "link"
174-
And I click on "More" "button"
175-
And I click on "Add a new course" "link"
174+
And I open the action menu in "region-main" "region"
175+
And I choose "Add a new course" in the open action menu
176176
And I set the following fields to these values:
177177
| Course full name | Lucifer |
178178
| Course short name | lucifer |
@@ -198,8 +198,8 @@ Feature: Using the local_resort_courses plugin
198198
And I am on course index
199199
And I follow "Movies"
200200
And "Avatar" "link" should appear before "Ice Age" "link"
201-
And I click on "More" "button"
202-
And I click on "Add a new course" "link"
201+
And I open the action menu in "region-main" "region"
202+
And I choose "Add a new course" in the open action menu
203203
And I set the following fields to these values:
204204
| Course full name | E.T. |
205205
| Course short name | et |
@@ -224,8 +224,8 @@ Feature: Using the local_resort_courses plugin
224224
And I am on course index
225225
And I follow "Series"
226226
And "House M.D." "link" should appear before "The X Files" "link"
227-
And I click on "More" "button"
228-
And I click on "Add a new course" "link"
227+
And I open the action menu in "region-main" "region"
228+
And I choose "Add a new course" in the open action menu
229229
And I set the following fields to these values:
230230
| Course full name | Lucifer |
231231
| Course short name | lucifer |
@@ -252,8 +252,8 @@ Feature: Using the local_resort_courses plugin
252252
And I follow "Movies"
253253
And I follow "Sequels"
254254
And "Ice Age 2" "link" should appear before "Shrek 2" "link"
255-
And I click on "More" "button"
256-
And I click on "Add a new course" "link"
255+
And I open the action menu in "region-main" "region"
256+
And I choose "Add a new course" in the open action menu
257257
And I set the following fields to these values:
258258
| Course full name | Minions |
259259
| Course short name | minions |

0 commit comments

Comments
 (0)