diff --git a/.ci/run.sh b/.ci/run.sh index 921db2c57..e4b3cbebe 100755 --- a/.ci/run.sh +++ b/.ci/run.sh @@ -16,7 +16,10 @@ vendor/bin/phpunit -c tests/phpunit.xml $CODE_COVERAGE_ARGS if [ "$BROWSER_TESTS" = 1 ] && [ $? = 0 ] then .ci/setup.sh \ + && echo "TESTS_MODE: DESKTOP" \ && TESTS_MODE=desktop vendor/bin/phpunit -c tests/Browser/phpunit.xml \ + && echo "TESTS_MODE: PHONE" \ && TESTS_MODE=phone vendor/bin/phpunit -c tests/Browser/phpunit.xml \ + && echo "TESTS_MODE: TABLET" \ && TESTS_MODE=tablet vendor/bin/phpunit -c tests/Browser/phpunit.xml fi diff --git a/tests/Browser/DuskTestCase.php b/tests/Browser/DuskTestCase.php index bb37242bc..5398d455d 100644 --- a/tests/Browser/DuskTestCase.php +++ b/tests/Browser/DuskTestCase.php @@ -180,6 +180,7 @@ abstract class DuskTestCase extends TestCase // On phone the menu is invisible, open it if ($this->isPhone()) { $browser->click('.task-menu-button'); + $browser->waitFor('#taskmenu'); } $browser->with('#taskmenu', function(Browser $browser) use ($selected) { @@ -206,6 +207,7 @@ abstract class DuskTestCase extends TestCase // On phone the menu is invisible, open it if ($this->isPhone()) { $browser->click('.toolbar-menu-button'); + $browser->waitFor('#toolbar-menu'); } $browser->with('#toolbar-menu', function(Browser $browser) use ($active, $disabled) {