Try to fix flaky test

pull/7169/head
Aleksander Machniak 5 years ago
parent 31b0275573
commit a646b13715

@ -56,9 +56,10 @@ class Contacts extends \Tests\Browser\TestCase
$browser->assertToolbarMenu(['select'], []); $browser->assertToolbarMenu(['select'], []);
} }
else if ($browser->isTablet()) { else if ($browser->isTablet()) {
$browser->click('.toolbar-list-button'); $browser->click('.toolbar-list-button')
$browser->assertVisible('#toolbar-list-menu a.select:not(.disabled)'); ->waitFor('#toolbar-list-menu')
$browser->click(); ->assertVisible('#toolbar-list-menu a.select:not(.disabled)')
->click();
} }
else { else {
$browser->assertVisible('#toolbar-list-menu a.select:not(.disabled)'); $browser->assertVisible('#toolbar-list-menu a.select:not(.disabled)');

Loading…
Cancel
Save