MDL-63817 block_timeline: Fixed behat test and clean template
authorPeter <peter@moodle.com>
Tue, 20 Nov 2018 01:00:44 +0000 (09:00 +0800)
committerPeter <peter@moodle.com>
Tue, 20 Nov 2018 01:00:44 +0000 (09:00 +0800)
blocks/timeline/tests/behat/block_timeline_pagelimit_persistence.feature
theme/bootstrapbase/templates/block_timeline/view.mustache

index 76518f5..c40bbf5 100644 (file)
@@ -56,7 +56,7 @@ Feature: The timeline block allows user persistence of their page limits
     And I click on "25" "link"
     And I should see "Test feedback 2" in the "Timeline" "block"
     And I click on "25" "button" in the "Timeline" "block"
-    And I click on "5" "link" in the ".dropdown-menu.show" "css_element"
+    And I click on "5" "link" in the "[data-region='timeline'] [data-region='paging-control-limit-container'] .dropdown-menu" "css_element"
     Then I should not see "Test feedback 2" in the "Timeline" "block"
     And I reload the page
     And I should not see "Test feedback 2" in the "Timeline" "block"
index 352631d..ebbe3bb 100644 (file)
@@ -47,7 +47,7 @@
 }}
 <div data-region="timeline-view">
     <div class="tab-content" style="overflow: visible">
-        <div class="tab-pane {{#sorttimelinedates}}active in{{/sorttimelinedates}} fade" data-region="view-dates" id="view_dates_{{uniqid}}">
+        <div class="tab-pane {{#sorttimelinedates}}active in{{/sorttimelinedates}} fade" data-limit="{{limit}}" data-region="view-dates" id="view_dates_{{uniqid}}">
             {{> block_timeline/view-dates }}
         </div>
         <div