@@ -303,32 +303,25 @@ Item {
305 function test_manage_dash_store_no_favorites() {
305 function test_manage_dash_store_no_favorites() {
307 // Show the manage dash
306 // Show the manage dash
308 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));
307 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));
309 var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController");
308 var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController");
310 tryCompare(bottomEdgeController, "progress", 1);
309 tryCompare(bottomEdgeController, "progress", 1);
313 // clear the favorite scopes
311 // clear the favorite scopes
314 scopes.clearFavorites();
312 scopes.clearFavorites();
315 var dashContentList = findChild(dash, "dashContentList");
313 var dashContentList = findChild(dash, "dashContentList");
316 tryCompare(dashContentList, "count", 0);
314 tryCompare(dashContentList, "count", 0);
319 var scopesList = findChild(dash, "scopesList");
316 var scopesList = findChild(dash, "scopesList");
320 spy.target = scopesList.scope;
317 spy.target = scopesList.scope;
321 spy.signalName = "queryPerformed";
318 spy.signalName = "queryPerformed";
324 // Click on the store
320 // Click on the store
325 var scopesListPageHeader = findChild(scopesList, "pageHeader");
321 var scopesListPageHeader = findChild(scopesList, "pageHeader");
326 var searchButton = findChild(scopesListPageHeader, "store_action_button");
322 var searchButton = findChild(scopesListPageHeader, "store_action_button");
327− console.log("D", searchButton, scopesListPageHeader);
329 mouseClick(searchButton);
323 mouseClick(searchButton);
332 spy.wait();
325 spy.wait();
333 compare(spy.signalArguments[0][0], "scope://com.canonical.scopes.clickstore");
326 compare(spy.signalArguments[0][0], "scope://com.canonical.scopes.clickstore");
334 tryCompare(bottomEdgeController, "progress", 0);
327 tryCompare(bottomEdgeController, "progress", 0);