on xenial help sign in
Check the popover filter shows up when should
b91f49aAlbert Astals Cid
qml/Dash/FiltersPopover.qml+1
@@ -20,6 +20,7 @@ import Ubuntu.Components.Popups 1.2
20import "Filters" as Filters
20import "Filters" as Filters
21
21
22Popover {
22Popover {
23+ objectName: "filtersPopover"
23 Column {
24 Column {
24 anchors {
25 anchors {
25 top: parent.top
26 top: parent.top
tests/qmltests/Dash/tst_DashContent.qml+17
@@ -530,6 +530,23 @@ Item {
530 verify(!searchTextField.clearIsSettings)
530 verify(!searchTextField.clearIsSettings)
531 }
531 }
532
532
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+
533 function test_searchHint() {
550 function test_searchHint() {
534 var dashContentList = findChild(dashContent, "dashContentList");
551 var dashContentList = findChild(dashContent, "dashContentList");
535 verify(dashContentList !== null);
552 verify(dashContentList !== null);