on xenial help sign in
rework the test a bit, let's see if CI likes it more
commitcb9f4fedbeca92d02653d20dc445d5c0d785e10c authorAlbert Astals <albert.astals@canonical.com> dateWed 11 Dec 2013, 10:25 (13 years ago) parentc6b0f38
1 file changed+6−3
tests/qmltests/Dash/tst_DashContent.qml+6−3
tests/qmltests/Dash/tst_DashContent.qml+6−3
@@ -275,11 +275,14 @@ Item {
275275
276276 function test_tabBar_index_change() {
277277 tryCompare(scopesModel, "loaded", true);
278+ var tabbar = findChild(dashContent, "tabbar");
278279
279280 compare(dashContent.currentIndex, 0);
280− mouseClick(dashContent, units.gu(5), units.gu(5))
281− wait(1000);
282− mouseClick(dashContent, units.gu(20), units.gu(5))
281+ tryCompare(tabbar, "selectionMode", false);
282+ mouseClick(tabbar, units.gu(5), units.gu(5))
283+ tryCompare(tabbar, "selectionMode", true);
284+ mouseClick(tabbar, units.gu(20), units.gu(5))
285+ tryCompare(tabbar, "selectionMode", false);
283286 tryCompare(dashContent, "currentIndex", 1);
284287 }
285288