on xenial help sign in
Make test_filter_expand_expand less unstable in CI VMs

Make sure header0 is the header0 we want to click On the CI VM stuff is a bit slower than on real hw and we were clicking in the wrong place. Approved by PS Jenkins bot, Michael Zanetti.

commit098aeabf34bddc7cbcebc77ae3f9d3700e058809 authorAlbert Astals <albert.astals@canonical.com> dateTue 7 Jan 2014, 12:07 (13 years ago) parent1916f6c1146e61
1 file changed+9
tests/qmltests/Dash/tst_GenericScopeView.qml+9
tests/qmltests/Dash/tst_GenericScopeView.qml+9
@@ -299,6 +299,15 @@ Item {
299299
300300 categoryListView.positionAtBeginning();
301301
302+ // wait for the header0 to be on its position
303+ tryCompareFunction(
304+ function() {
305+ var header0 = findChild(genericScopeView, "dashSectionHeader0")
306+ var pageHeader = findChild(genericScopeView, "pageHeader");
307+ return header0.y == pageHeader.height;
308+ },
309+ true);
310+
302311 var header0 = findChild(genericScopeView, "dashSectionHeader0")
303312 var category0 = findChild(genericScopeView, "dashCategory0")
304313 mouseClick(header0, header0.width / 2, header0.height / 2);