on xenial help sign in
rework the test a bit, let's see if CI likes it more
cb9f4feAlbert Astals
tests/qmltests/Dash/tst_DashContent.qml+6−3
@@ -275,11 +275,14 @@ Item {
275
275
276 function test_tabBar_index_change() {
276 function test_tabBar_index_change() {
277 tryCompare(scopesModel, "loaded", true);
277 tryCompare(scopesModel, "loaded", true);
278+ var tabbar = findChild(dashContent, "tabbar");
278
279
279 compare(dashContent.currentIndex, 0);
280 compare(dashContent.currentIndex, 0);
281+ tryCompare(tabbar, "selectionMode", false);
280− mouseClick(dashContent, units.gu(5), units.gu(5))
282+ mouseClick(tabbar, units.gu(5), units.gu(5))
281− wait(1000);
283+ tryCompare(tabbar, "selectionMode", true);
282− mouseClick(dashContent, units.gu(20), units.gu(5))
284+ mouseClick(tabbar, units.gu(20), units.gu(5))
285+ tryCompare(tabbar, "selectionMode", false);
283 tryCompare(dashContent, "currentIndex", 1);
286 tryCompare(dashContent, "currentIndex", 1);
284 }
287 }
285
288