@@ -104,53 +104,50 @@ Item {
104 tryCompare(genericScopeView.scope, "searchQuery", "test")
104 tryCompare(genericScopeView.scope, "searchQuery", "test")
107− function test_filter_expand_collapse() {
107+ function test_expand_collapse() {
108 tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != null; }, true);
108 tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != null; }, true);
110− var header = findChild(genericScopeView, "dashSectionHeader0")
111 var category = findChild(genericScopeView, "dashCategory0")
110 var category = findChild(genericScopeView, "dashCategory0")
111+ var seeAll = findChild(category, "seeAll")
113− waitForRendering(header);
113+ waitForRendering(seeAll);
114 verify(category.expandable);
114 verify(category.expandable);
115 verify(!category.expanded);
115 verify(!category.expanded);
117 var initialHeight = category.height;
117 var initialHeight = category.height;
119− mouseClick(header, header.width / 2, header.height / 2);
118+ mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
120− tryCompareFunction(function() { middleHeight = category.height; return category.height > initialHeight; }, true);
119+ verify(category.expanded);
121− tryCompare(category, "expanded", true);
122− tryCompareFunction(function() { return category.height > middleHeight; }, true);
120+ tryCompareFunction(function() { return category.height > initialHeight; }, true);
124− mouseClick(header, header.width / 2, header.height / 2);
122+ mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
125− verify(category.expandable);
123+ verify(!category.expanded);
126− tryCompare(category, "expanded", false);
129− function test_filter_expand_expand_collapse() {
126+ function test_expand_expand_collapse() {
130 // wait for the item to be there
127 // wait for the item to be there
131 tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2") != null; }, true);
128 tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2") != null; }, true);
133 var categoryListView = findChild(genericScopeView, "categoryListView");
130 var categoryListView = findChild(genericScopeView, "categoryListView");
134 categoryListView.contentY = categoryListView.height;
131 categoryListView.contentY = categoryListView.height;
136− var header2 = findChild(genericScopeView, "dashSectionHeader2")
137 var category2 = findChild(genericScopeView, "dashCategory2")
133 var category2 = findChild(genericScopeView, "dashCategory2")
134+ var seeAll2 = findChild(category2, "seeAll")
139− waitForRendering(header2);
136+ waitForRendering(seeAll2);
140 verify(category2.expandable);
137 verify(category2.expandable);
141 verify(!category2.expanded);
138 verify(!category2.expanded);
143− mouseClick(header2, header2.width / 2, header2.height / 2);
140+ mouseClick(seeAll2, seeAll2.width / 2, seeAll2.height / 2);
144 tryCompare(category2, "expanded", true);
141 tryCompare(category2, "expanded", true);
146 categoryListView.positionAtBeginning();
143 categoryListView.positionAtBeginning();
148− var header0 = findChild(genericScopeView, "dashSectionHeader0")
149 var category0 = findChild(genericScopeView, "dashCategory0")
145 var category0 = findChild(genericScopeView, "dashCategory0")
146+ var seeAll0 = findChild(category0, "seeAll")
150− mouseClick(header0, header0.width / 2, header0.height / 2);
147+ mouseClick(seeAll0, seeAll0.width / 2, seeAll0.height / 2);
151 tryCompare(category0, "expanded", true);
148 tryCompare(category0, "expanded", true);
152 tryCompare(category2, "expanded", false);
149 tryCompare(category2, "expanded", false);
153− mouseClick(header0, header0.width / 2, header0.height / 2);
150+ mouseClick(seeAll0, seeAll0.width / 2, seeAll0.height / 2);
154 tryCompare(category0, "expanded", false);
151 tryCompare(category0, "expanded", false);
155 tryCompare(category2, "expanded", false);
152 tryCompare(category2, "expanded", false);
@@ -163,11 +160,11 @@ Item {
163 shell.width = units.gu(20)
160 shell.width = units.gu(20)
164 var categoryListView = findChild(genericScopeView, "categoryListView");
161 var categoryListView = findChild(genericScopeView, "categoryListView");
165 categoryListView.contentY = units.gu(20);
162 categoryListView.contentY = units.gu(20);
166− var header0 = findChild(genericScopeView, "dashSectionHeader0")
163+ var seeAll = findChild(category, "seeAll")
167− mouseClick(header0, header0.width / 2, header0.height / 2);
164+ mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
168 tryCompare(category, "expanded", true);
165 tryCompare(category, "expanded", true);
169 tryCompareFunction(function() { return category.item.height == genericScopeView.height - category.item.displayMarginBeginning - category.item.displayMarginEnd; }, true);
166 tryCompareFunction(function() { return category.item.height == genericScopeView.height - category.item.displayMarginBeginning - category.item.displayMarginEnd; }, true);
170− mouseClick(header0, header0.width / 2, header0.height / 2);
167+ mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
171 tryCompare(category, "expanded", false);
168 tryCompare(category, "expanded", false);