Scenario: Next 30 days in course view
Given I log in as "student1"
- And I click on "Sort" "button" in the "Timeline" "block"
+ And I click on "Sort timeline items" "button" in the "Timeline" "block"
When I click on "Sort by courses" "link" in the "Timeline" "block"
Then I should see "Course 1" in the "Timeline" "block"
And I should see "Course 2" in the "Timeline" "block"
Scenario: All in course view
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "All" "link" in the "Timeline" "block"
- And I click on "Sort" "button" in the "Timeline" "block"
+ And I click on "Sort timeline items" "button" in the "Timeline" "block"
And I click on "Sort by courses" "link" in the "Timeline" "block"
When I click on "More courses" "button" in the "Timeline" "block"
Then I should see "Course 3" in the "Timeline" "block"
Scenario: Persistent sort filter
Given I log in as "student1"
- And I click on "Sort" "button" in the "Timeline" "block"
+ And I click on "Sort timeline items" "button" in the "Timeline" "block"
And I click on "Sort by dates" "link" in the "Timeline" "block"
- And I click on "Sort" "button" in the "Timeline" "block"
+ And I click on "Sort timeline items" "button" in the "Timeline" "block"
And I click on "Sort by courses" "link" in the "Timeline" "block"
And I reload the page
Then I should see "Course 1" in the "Timeline" "block"
Scenario: Next 7 days in date view
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
When I click on "Next 7 days" "link" in the "Timeline" "block"
Then I should see "Test choice 1 closes" in the "Timeline" "block"
And I should see "Test feedback 1 closes" in the "Timeline" "block"
Scenario: Overdue in date view
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
When I click on "Overdue" "link" in the "Timeline" "block"
Then I should see "Test assign 1 is due" in the "Timeline" "block"
And I should not see "Test choice 2 closes" in the "Timeline" "block"
Scenario: All in date view
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
When I click on "All" "link" in the "Timeline" "block"
Then I should see "Test assign 1 is due" in the "Timeline" "block"
And I should see "Test feedback 1 closes" in the "Timeline" "block"
Scenario: All in date view no next
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "All" "link" in the "Timeline" "block"
And I click on "5" "button" in the "Timeline" "block"
When I click on "25" "link" in the "Timeline" "block"
Scenario: Persistent All in date view
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
When I click on "All" "link" in the "Timeline" "block"
And I reload the page
Then I should see "Test assign 1 is due" in the "Timeline" "block"
Scenario: Persistent Overdue in date view
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
When I click on "Overdue" "link" in the "Timeline" "block"
And I reload the page
Then I should see "Test assign 1 is due" in the "Timeline" "block"
Scenario: Toggle the page limit 5 - 25
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "All" "link" in the "Timeline" "block"
- And I click on "Sort" "button" in the "Timeline" "block"
+ And I click on "Sort timeline items" "button" in the "Timeline" "block"
And I click on "Sort by dates" "link" in the "Timeline" "block"
When I click on "5" "button" in the "Timeline" "block"
And I click on "25" "link"
Scenario: Toggle the page limit 25 - 5
Given I log in as "student1"
- And I click on "Next 30 days" "button" in the "Timeline" "block"
+ And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "All" "link" in the "Timeline" "block"
- And I click on "Sort" "button" in the "Timeline" "block"
+ And I click on "Sort timeline items" "button" in the "Timeline" "block"
And I click on "Sort by dates" "link" in the "Timeline" "block"
When I click on "5" "button" in the "Timeline" "block"
And I click on "25" "link"