diff --git a/mod/course/tests/behat/app_courselist.feature b/mod/course/tests/behat/app_courselist.feature index 08788755d..7619ec85e 100644 --- a/mod/course/tests/behat/app_courselist.feature +++ b/mod/course/tests/behat/app_courselist.feature @@ -22,6 +22,7 @@ Feature: Test course list shown on app start tab Scenario: View courses (shortnames not displayed) When I enter the app And I log in as "student1" + And I press "My courses" in the app Then I should find "Course 1" in the app But I should not find "Course 2" in the app But I should not find "C1" in the app @@ -29,6 +30,7 @@ Feature: Test course list shown on app start tab When I enter the app And I log in as "student2" + And I press "My courses" in the app Then I should find "Course 1" in the app And I should find "Course 2" in the app But I should not find "C1" in the app @@ -78,6 +80,7 @@ Feature: Test course list shown on app start tab | student2 | Z10 | student | When I enter the app And I log in as "student2" + And I press "My courses" in the app Then I should find "C1" in the app And I should find "C2" in the app And I should find "C3" in the app diff --git a/mod/courses/tests/behat/app_basic_usage.feature b/mod/courses/tests/behat/app_basic_usage.feature index bed2e812a..7dc6932ef 100755 --- a/mod/courses/tests/behat/app_basic_usage.feature +++ b/mod/courses/tests/behat/app_basic_usage.feature @@ -39,15 +39,12 @@ Feature: Test basic usage of courses in app And I log in as "student1" Then I should see "Dashboard" And the header should be "Acceptance test site" in the app - And I should find "Course 1" in the app - And I should find "Course 2" in the app - And I should find "Course 3" in the app - - When I press "Site home" in the app + And I should see "Timeline" + And I press "Site home" in the app Then I should find "Dashboard" in the app And the header should be "Acceptance test site" in the app - When I press "Dashboard" in the app + When I press "My courses" in the app Then I should find "Course 1" in the app And I should find "Course 2" in the app And I should find "Course 3" in the app @@ -56,6 +53,7 @@ Feature: Test basic usage of courses in app When I enter the app And I log in as "student1" Then the header should be "Acceptance test site" in the app + And I press "My courses" in the app And I should find "Course 1" in the app And I should find "Course 2" in the app And I should find "Course 3" in the app