on xenial help sign in
Does a try compare help?
commit7cd287d9851272f03cde94a70badf9e9aa63ffc8 authorAlbert Astals <albert.astals@canonical.com> dateTue 10 Dec 2013, 17:19 (13 years ago) parent04da464
1 file changed+1−1
tests/qmltests/Dash/tst_DashContent.qml+1−1
tests/qmltests/Dash/tst_DashContent.qml+1−1
@@ -280,7 +280,7 @@ Item {
280280 mouseClick(dashContent, units.gu(5), units.gu(5))
281281 wait(1000);
282282 mouseClick(dashContent, units.gu(20), units.gu(5))
283− compare(dashContent.currentIndex, 1);
283+ tryCompare(dashContent, "currentIndex", 1);
284284 }
285285
286286 function test_tabBar_listens_to_index_change() {