Tests: Try to fix failing toolbar menu tests in phone mode

pull/7143/head
Aleksander Machniak 5 years ago
parent accb5f63e2
commit 564287d6c8

@ -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

@ -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) {

Loading…
Cancel
Save