Skip to content

Commit 48f7346

Browse files
committed
MOBILE-4616 behat: Remove cases where near is not needed
1 parent 34ae590 commit 48f7346

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/addons/mod/assign/tests/behat/basic_usage.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Feature: Test basic usage of assignment activity in app
5353
Then I should find "Student student" in the app
5454
And I should find "Not graded" in the app
5555

56-
When I press "Student student" near "assignment1" in the app
56+
When I press "Student student" in the app
5757
Then I should find "Online text submissions" in the app
5858
And I should find "Submission test edited" in the app
5959
And the following events should have been logged for "student1" in the app:
@@ -87,7 +87,7 @@ Feature: Test basic usage of assignment activity in app
8787
# Allow more attempts as a teacher
8888
Given I entered the assign activity "assignment1" on course "Course 1" as "teacher1" in the app
8989
When I press "Participants" in the app
90-
And I press "Student student" near "assignment1" in the app
90+
And I press "Student student" in the app
9191
And I press "Grade" in the app
9292
And I press "Allow another attempt" in the app
9393
And I press "Done" in the app
@@ -116,7 +116,7 @@ Feature: Test basic usage of assignment activity in app
116116
Given I entered the assign activity "assignment1" on course "Course 1" as "teacher1" in the app
117117
When I press "Participants" in the app
118118
And I pull to refresh in the app
119-
And I press "Student student" near "assignment1" in the app
119+
And I press "Student student" in the app
120120
Then I should find "Online text submissions" in the app
121121
And I should find "Submission test 2nd attempt" in the app
122122

src/core/features/mainmenu/tests/behat/mainmenu.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: Main Menu opens the right page
3434
Given the following config values are set as admin:
3535
| defaulthomepage | 3 |
3636
And I entered the app as "student"
37-
Then "My courses" near "Home" should be selected in the app
37+
Then "My courses" "ion-tab-button" should be selected in the app
3838
And I should find "Course 1" in the app
3939
And "My courses" "text" should appear before "Home" "text" in the ".mainmenu-tabs" "css_element"
4040

0 commit comments

Comments
 (0)