on xenial help sign in
Press the button directly, instead of guessing where it is
2892bd5Albert Astals
tests/qmltests/Dash/tst_DashContent.qml+4−1
@@ -281,7 +281,10 @@ Item {
281 tryCompare(tabbar, "selectionMode", false);
281 tryCompare(tabbar, "selectionMode", false);
282 mouseClick(tabbar, units.gu(5), units.gu(5))
282 mouseClick(tabbar, units.gu(5), units.gu(5))
283 tryCompare(tabbar, "selectionMode", true);
283 tryCompare(tabbar, "selectionMode", true);
284− mouseClick(tabbar, units.gu(20), units.gu(5))
284+ var button0 = tabbar.children[0].children[0].children[0].children[2].children[1];
285+ waitForRendering(button0);
286+ tryCompare(button0.children[3], "text", "Music");
287+ mouseClick(button0, button0.width / 2, button0.height / 2)
285 tryCompare(tabbar, "selectionMode", false);
288 tryCompare(tabbar, "selectionMode", false);
286 tryCompare(tabbar, "selectedIndex", 1);
289 tryCompare(tabbar, "selectedIndex", 1);
287 tryCompare(dashContent, "currentIndex", 1);
290 tryCompare(dashContent, "currentIndex", 1);