@@ -70,16 +70,11 @@ Rectangle {
7070 when: windowShown
7171
7272 function test_optionSelector() {
73− var initialHeight = factory.implicitHeight;
74− var currentHeight = 0;
73+ var expandingItem = findChild(factory, "expandingItem");
7574 // Open the selector
7675 mouseClick(factory);
7776 // wait for it to stop growing
78− while (currentHeight != factory.implicitHeight) {
79− currentHeight = factory.implicitHeight;
80− wait(250);
81− }
82− verify(initialHeight < currentHeight);
77+ tryCompare(factory, "implicitHeight", expandingItem.expandedHeight);
8378
8479 // Check the first option
8580 var option0 = findChild(factory, "testOptionSelectorFilterlabel0");