MDL-63817 block_timeline: Fixed behat test and clean template

This commit is contained in:
Peter 2018-11-20 09:00:44 +08:00
parent 2044a53946
commit eb2fe63ef1
2 changed files with 2 additions and 2 deletions

View 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"

View 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