on xenial help sign in
Check the popover filter shows up when should
commitb91f49a3d97bfec7cef7bb774fafa15786318e8c authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 13 Oct 2015, 13:29 (11 years ago) parent626c7e4
2 files changed+18
qml/Dash/FiltersPopover.qml+1 tests/qmltests/Dash/tst_DashContent.qml+17
qml/Dash/FiltersPopover.qml+1
@@ -20,6 +20,7 @@ import Ubuntu.Components.Popups 1.2
2020import "Filters" as Filters
2121
2222Popover {
23+ objectName: "filtersPopover"
2324 Column {
2425 anchors {
2526 top: parent.top
tests/qmltests/Dash/tst_DashContent.qml+17
@@ -530,6 +530,23 @@ Item {
530530 verify(!searchTextField.clearIsSettings)
531531 }
532532
533+ function test_navigationShowFilterPopup() {
534+ goToSecondLevel();
535+
536+ var dashContentList = findChild(dashContent, "dashContentList");
537+ var searchTextField = findChild(dashContentList.currentItem, "searchTextField");
538+ var clearIcon = findChild(searchTextField, "clearIcon");
539+
540+ var filtersPopover = findChild(shell, "filtersPopover")
541+ verify(!filtersPopover);
542+
543+ mouseClick(clearIcon);
544+
545+ filtersPopover = findChild(shell, "filtersPopover")
546+
547+ verify(filtersPopover);
548+ }
549+
533550 function test_searchHint() {
534551 var dashContentList = findChild(dashContent, "dashContentList");
535552 verify(dashContentList !== null);