From 78af6dec0d479a3be01ff4e9da9b7422005bef7f Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 8 Mar 2019 09:46:02 +0800 Subject: [PATCH] MDL-65005 block_timeline: Behat fixes --- .../tests/behat/block_timeline_courses.feature | 10 +++++----- .../tests/behat/block_timeline_dates.feature | 12 ++++++------ .../block_timeline_pagelimit_persistence.feature | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/blocks/timeline/tests/behat/block_timeline_courses.feature b/blocks/timeline/tests/behat/block_timeline_courses.feature index d9a8a20cb48..ad50e694ed6 100644 --- a/blocks/timeline/tests/behat/block_timeline_courses.feature +++ b/blocks/timeline/tests/behat/block_timeline_courses.feature @@ -36,7 +36,7 @@ Feature: The timeline block allows users to see upcoming courses 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" @@ -52,9 +52,9 @@ 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 "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" @@ -73,9 +73,9 @@ Feature: The timeline block allows users to see upcoming courses 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" diff --git a/blocks/timeline/tests/behat/block_timeline_dates.feature b/blocks/timeline/tests/behat/block_timeline_dates.feature index 29548a0bf32..479aa84bbf0 100644 --- a/blocks/timeline/tests/behat/block_timeline_dates.feature +++ b/blocks/timeline/tests/behat/block_timeline_dates.feature @@ -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 "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" @@ -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 "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" @@ -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 "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" @@ -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 "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" @@ -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 "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" @@ -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 "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" diff --git a/blocks/timeline/tests/behat/block_timeline_pagelimit_persistence.feature b/blocks/timeline/tests/behat/block_timeline_pagelimit_persistence.feature index c40bbf55b4a..f08bc38d5ec 100644 --- a/blocks/timeline/tests/behat/block_timeline_pagelimit_persistence.feature +++ b/blocks/timeline/tests/behat/block_timeline_pagelimit_persistence.feature @@ -35,9 +35,9 @@ 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 "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" @@ -48,9 +48,9 @@ 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 "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"