diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterOptionsTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterOptionsTest.php index fdb0403c5a..aef257fb89 100644 --- a/core/modules/views_ui/tests/src/FunctionalJavascript/FilterOptionsTest.php +++ b/core/modules/views_ui/tests/src/FunctionalJavascript/FilterOptionsTest.php @@ -100,6 +100,11 @@ public function testDialogOverlayWithHorizontalToolbar($theme) { $web_assert = $this->assertSession(); $page = $session->getPage(); + // Set size for horizontal toolbar. + $session->resizeWindow(1200, 600); + $this->assertNotEmpty($web_assert->waitForElement('css', 'body.toolbar-horizontal')); + $this->assertNotEmpty($web_assert->waitForElementVisible('css', '.toolbar-tray')); + // Toggle the Toolbar in Horizontal mode to asserts the checkboxes are not // covered by the toolbar. $page->pressButton('Vertical orientation');