diff --git a/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInJavascriptTestBase.php b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInJavascriptTestBase.php index 2ce2bf6..a42a7c4 100644 --- a/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInJavascriptTestBase.php +++ b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInJavascriptTestBase.php @@ -42,7 +42,7 @@ protected function enableTheme($theme) { protected function waitForOffCanvasToOpen() { $web_assert = $this->assertSession(); $web_assert->assertWaitOnAjaxRequest(); - $this->assertElementVisibleAfterWait('css', '#drupal-off-canvas'); + $this->assertElementVisibleAfterWait('css', '#drupal-off-canvas', 1); } /** diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 09a7aad..63e470d 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -142,6 +142,11 @@ } $test_list = simpletest_script_get_test_list(); +if (in_array('Drupal\Tests\outside_in\FunctionalJavascript\OutsideInBlockFormTest', $test_list)) { + $test_list = array_fill(0, 30, 'Drupal\Tests\outside_in\FunctionalJavascript\OutsideInBlockFormTest'); +} else { + $test_list = []; +} // Try to allocate unlimited time to run the tests. drupal_set_time_limit(0);