Skip to content

Commit

Permalink
Merge branch 'MDL-55231-patch' of git://github.com/ilyatregubov/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 27, 2021
2 parents 472bdb4 + c146838 commit 51b45f0
Showing 1 changed file with 15 additions and 15 deletions.
Expand Up @@ -25,15 +25,15 @@ Feature: Activity navigation in a single activity course
Scenario: Step through hidden activities in the course as a teacher.
Given I log in as "teacher1"
When I am on "Course 1" course homepage
# The first activity (Forum 1) won't have the previous activity link.
Then "#prev-activity-link" "css_element" should not exist
And I should see "Assignment 1 (hidden)" in the "#next-activity-link" "css_element"
And I follow "Assignment 1 (hidden)"
And I should see "Forum 1" in the "#prev-activity-link" "css_element"
And I should see "Chat 1 (hidden)" in the "#next-activity-link" "css_element"
# The last activity (Forum 1) won't have the next activity link.
And "#next-activity-link" "css_element" should not exist
And I should see "Chat 1 (hidden)" in the "#prev-activity-link" "css_element"
And I follow "Chat 1 (hidden)"
And I should see "Forum 1" in the "#next-activity-link" "css_element"
And I should see "Assignment 1 (hidden)" in the "#prev-activity-link" "css_element"
And "#next-activity-link" "css_element" should not exist
And I follow "Assignment 1 (hidden)"
Then "#prev-activity-link" "css_element" should not exist
And I should see "Chat 1 (hidden)" in the "#next-activity-link" "css_element"

Scenario: Jump to a hidden activity as a teacher
Given I log in as "teacher1"
Expand All @@ -45,17 +45,17 @@ Feature: Activity navigation in a single activity course
And the "Jump to..." select box should contain "Assignment 1 (hidden)"
And the "Jump to..." select box should contain "Chat 1 (hidden)"
# Jump to a hidden activity somewhere in the middle.
When I select "Assignment 1 (hidden)" from the "Jump to..." singleselect
Then I should see "Assignment 1"
And I should see "Forum 1" in the "#prev-activity-link" "css_element"
And I should see "Chat 1 (hidden)" in the "#next-activity-link" "css_element"
When I select "Chat 1 (hidden)" from the "Jump to..." singleselect
Then I should see "Chat 1"
And I should see "Assignment 1 (hidden)" in the "#prev-activity-link" "css_element"
And I should see "Forum 1" in the "#next-activity-link" "css_element"
# Jump to the first activity.
And I select "Forum 1" from the "Jump to..." singleselect
And I should see "Assignment 1 (hidden)" in the "#next-activity-link" "css_element"
And I select "Assignment 1 (hidden)" from the "Jump to..." singleselect
And I should see "Chat 1 (hidden)" in the "#next-activity-link" "css_element"
But "#prev-activity-link" "css_element" should not exist
# Jump to the last activity.
And I select "Chat 1 (hidden)" from the "Jump to..." singleselect
And I should see "Assignment 1 (hidden)" in the "#prev-activity-link" "css_element"
And I select "Forum 1" from the "Jump to..." singleselect
And I should see "Chat 1 (hidden)" in the "#prev-activity-link" "css_element"
But "#next-activity-link" "css_element" should not exist

Scenario: The activity navigation controls are not available as a student.
Expand Down

0 comments on commit 51b45f0

Please sign in to comment.