@@ -222,6 +222,26 @@ Item {
222222 genericScopeView.scope = scopes.get(0)
223223 tryCompare(genericScopeView.scope, "searchQuery", "")
224224 }
225+
226+ function test_filter_expand_collapse() {
227+ // wait for the item to be there
228+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != undefined; }, true);
229+
230+ var header = findChild(genericScopeView, "dashSectionHeader0")
231+ var category = findChild(genericScopeView, "dashCategory0")
232+
233+ waitForRendering(header);
234+ verify(category.expandable);
235+ verify(category.filtered);
236+
237+ mouseClick(header, header.width / 2, header.height / 2);
238+ verify(category.expandable);
239+ tryCompare(category, "filtered", false);
240+
241+ mouseClick(header, header.width / 2, header.height / 2);
242+ verify(category.expandable);
243+ tryCompare(category, "filtered", true);
244+ }
225245 }
226246 }
227247}