diff --git a/course/format/singleactivity/tests/behat/activity_navigation.feature b/course/format/singleactivity/tests/behat/activity_navigation.feature index 7d3aed1dcff..c822c3bbeed 100644 --- a/course/format/singleactivity/tests/behat/activity_navigation.feature +++ b/course/format/singleactivity/tests/behat/activity_navigation.feature @@ -65,3 +65,8 @@ Feature: Activity navigation in a single activity course Then "#prev-activity-link" "css_element" should not exist And "#next-activity-link" "css_element" should not exist And "Jump to..." "field" should not exist + + Scenario: The activity navigation asks for login to guest user + Given I log in as "guest" + When I am on "Course 1" course homepage + Then I should see "Guests cannot access this course. Please log in"