From a646b13715fedc0feedbd2c16e1569b8ace3f9e3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 9 Jan 2020 20:57:26 +0100 Subject: [PATCH] Try to fix flaky test --- tests/Browser/Contacts/Contacts.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Browser/Contacts/Contacts.php b/tests/Browser/Contacts/Contacts.php index 74890d996..6eac02c40 100644 --- a/tests/Browser/Contacts/Contacts.php +++ b/tests/Browser/Contacts/Contacts.php @@ -56,9 +56,10 @@ class Contacts extends \Tests\Browser\TestCase $browser->assertToolbarMenu(['select'], []); } else if ($browser->isTablet()) { - $browser->click('.toolbar-list-button'); - $browser->assertVisible('#toolbar-list-menu a.select:not(.disabled)'); - $browser->click(); + $browser->click('.toolbar-list-button') + ->waitFor('#toolbar-list-menu') + ->assertVisible('#toolbar-list-menu a.select:not(.disabled)') + ->click(); } else { $browser->assertVisible('#toolbar-list-menu a.select:not(.disabled)');