on xenial help sign in
Wait for the height animation to finish

otherwise we click on something that is still not there and the test fails

commit55cdd2ba1fc389c3a6d9b24982f5bd17944d30ab authorAlbert Astals <albert.astals@canonical.com> dateThu 6 Feb 2014, 17:18 (13 years ago) parentf346a42
1 file changed+2
tests/qmltests/Dash/Previews/tst_PreviewActions.qml+2
tests/qmltests/Dash/Previews/tst_PreviewActions.qml+2
@@ -129,10 +129,12 @@ Rectangle {
129129
130130 function test_comboButton(data) {
131131 var button = findChild(root, "moreLessButton");
132+ var buttonColumn = findChild(root, "buttonColumn");
132133 verify(button != null);
133134 var twoActionsY = twoActions.y
134135 mouseClick(button, button.width / 2, button.height / 2);
135136 tryCompareFunction(function () { return twoActions.y <= twoActionsY; }, false);
137+ tryCompare(buttonColumn, "height", buttonColumn.implicitHeight);
136138 checkButtonPressSignal(buttonAndCombo, data.id, data.buttonNumber);
137139 mouseClick(button, button.width / 2, button.height / 2);
138140 tryCompare(twoActions, "y", twoActionsY);