MDL-72276 block_timeline: behat scenario update after aria label change

This commit is contained in:
Víctor Déniz 2021-10-04 13:58:56 +01:00 committed by Eloy Lafuente (stronk7)
parent 40e4f5fc6b
commit 48b5d50200
3 changed files with 14 additions and 14 deletions

View File

@ -52,7 +52,7 @@ Feature: The timeline block allows users to see upcoming courses
Scenario: All in course view
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And I click on "All" "link" 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"
@ -94,7 +94,7 @@ Feature: The timeline block allows users to see upcoming courses
Given I log in as "student1"
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 click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And I click on "All" "link" in the "Timeline" "block"
When I reload the page
And I click on "More courses" "button" in the "Timeline" "block"
@ -116,14 +116,14 @@ Feature: The timeline block allows users to see upcoming courses
Given I log in as "student1"
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 click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And I click on "Overdue" "link" in the "Timeline" "block"
And I reload the page
And I should see "Test assign 1 is due" in the "Timeline" "block"
And I should not see "Test feedback 2 closes" 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 "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
# Confirm that when we switch back to courses view, the "All" filer continues to be applied (and not "overdue").
When I click on "All" "link" in the "Timeline" "block"
And I click on "Sort timeline items" "button" in the "Timeline" "block"

View File

@ -33,7 +33,7 @@ Feature: The timeline block allows users to see upcoming activities
Scenario: Next 7 days in date view
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "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"
@ -44,7 +44,7 @@ Feature: The timeline block allows users to see upcoming activities
Scenario: Overdue in date view
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "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"
@ -55,7 +55,7 @@ Feature: The timeline block allows users to see upcoming activities
Scenario: All in date view
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "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"
@ -75,7 +75,7 @@ Feature: The timeline block allows users to see upcoming activities
Scenario: All in date view no next
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "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"
@ -89,7 +89,7 @@ Feature: The timeline block allows users to see upcoming activities
Scenario: Persistent All in date view
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "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"
@ -110,7 +110,7 @@ Feature: The timeline block allows users to see upcoming activities
Scenario: Persistent Overdue in date view
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "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"
@ -122,7 +122,7 @@ Feature: The timeline block allows users to see upcoming activities
Scenario: Current filtering always applies in date view
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And I click on "Overdue" "link" in the "Timeline" "block"
And I reload the page
# Expand to 25 results, to ensure we see the earliest and latest timeline items.
@ -132,7 +132,7 @@ Feature: The timeline block allows users to see upcoming activities
And I should not see "Test feedback 2 closes" 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 click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
# Confirm that when we switch back to date view, the "All" filer continues to be applied (and not "overdue")
When I click on "All" "link" in the "Timeline" "block"
And I click on "Sort timeline items" "button" in the "Timeline" "block"

View File

@ -35,7 +35,7 @@ Feature: The timeline block allows user persistence of their page limits
Scenario: Toggle the page limit 5 - 25
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And I click on "All" "link" 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"
@ -48,7 +48,7 @@ Feature: The timeline block allows user persistence of their page limits
Scenario: Toggle the page limit 25 - 5
Given I log in as "student1"
And I click on "Filter timeline items" "button" in the "Timeline" "block"
And I click on "Filter timeline by date" "button" in the "Timeline" "block"
And I click on "All" "link" 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"