Skip to content

Commit 5061546

Browse files
authored
Merge pull request #4713 from dpalou/MOBILE-4974
MOBILE-4974 behat: Fix behats due to MDL-87540
2 parents 885bf35 + 6a1fa85 commit 5061546

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/addons/block/timeline/tests/behat/basic_usage.feature

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Feature: Timeline block.
5656
But I should not find "Assignment 01" within "Timeline" "ion-card" in the app
5757
And I should not find "Course 3" within "Timeline" "ion-card" in the app
5858

59-
When I press "Filter timeline by date" in the app
59+
When I press "Filter timeline by date" within "Timeline" "ion-card" in the app
6060
And I press "Overdue" in the app
6161
Then I should find "Assignment 01" within "Timeline" "ion-card" in the app
6262
And I should find "Course 2" within "Timeline" "ion-card" in the app
@@ -65,19 +65,19 @@ Feature: Timeline block.
6565
And I should not find "Course 1" within "Timeline" "ion-card" in the app
6666
And I should not find "Course 3" within "Timeline" "ion-card" in the app
6767

68-
When I press "Filter timeline by date" in the app
68+
When I press "Filter timeline by date" within "Timeline" "ion-card" in the app
6969
And I press "All" in the app
7070
Then I should find "Assignment 19" within "Timeline" "ion-card" in the app
7171
And I should find "Course 3" within "Timeline" "ion-card" in the app
7272
But I should not find "Assignment 20" within "Timeline" "ion-card" in the app
7373

74-
When I press "Load more" in the app
74+
When I press "Load more" within "Timeline" "ion-card" in the app
7575
Then I should find "Assignment 21" within "Timeline" "ion-card" in the app
7676
And I should find "Assignment 25" within "Timeline" "ion-card" in the app
7777

78-
When I press "Filter timeline by date" in the app
78+
When I press "Filter timeline by date" within "Timeline" "ion-card" in the app
7979
And I press "Next 7 days" in the app
80-
And I press "Sort by" in the app
80+
And I press "Sort by" within "Timeline" "ion-card" in the app
8181
And I press "Sort by courses" in the app
8282
Then I should find "Course 1" "h3" within "Timeline" "ion-card" in the app
8383
And I should find "Course 2" "h3" within "Timeline" "ion-card" in the app
@@ -97,21 +97,21 @@ Feature: Timeline block.
9797

9898
When I set the field "Search by activity type or name" to "thisdoesntexist" in the app
9999
And I press "Search" in the app
100-
Then I should find "No activities require action" in the app
100+
Then I should find "No activities require action" within "Timeline" "ion-card" in the app
101101
But I should not find "Assignment 00" within "Timeline" "ion-card" in the app
102102

103-
When I press "Clear search" in the app
103+
When I press "Clear search" within "Timeline" "ion-card" in the app
104104
Then I should find "Assignment 00" within "Timeline" "ion-card" in the app
105105

106-
When I press "Sort by" in the app
106+
When I press "Sort by" within "Timeline" "ion-card" in the app
107107
And I press "Sort by courses" in the app
108-
Then I should find "Course 1" in the app
108+
Then I should find "Course 1" within "Timeline" "ion-card" in the app
109109
And I should find "Assignment 02" within "Timeline" "ion-card" in the app
110110

111111
When I set the field "Search by activity type or name" to "thisdoesntexist" in the app
112112
And I press "Search" in the app
113-
Then I should find "No activities require action" in the app
114-
But I should not find "Course 1" in the app
113+
Then I should find "No activities require action" within "Timeline" "ion-card" in the app
114+
But I should not find "Course 1" within "Timeline" "ion-card" in the app
115115
And I should not find "Assignment 02" within "Timeline" "ion-card" in the app
116116

117117
@disabled_features
Loading

0 commit comments

Comments
 (0)