Skip to content
Snippets Groups Projects
Commit c7b8bc52 authored by catch's avatar catch
Browse files

Issue #3056008 by alexpott, Lendude: Set default window size in...

Issue #3056008 by alexpott, Lendude: Set default window size in \Drupal\FunctionalJavascriptTests\WebDriverTestBase
parent 8426bf5f
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -29,6 +29,9 @@
/**
* Prevent youtube and third party content in iFrames from affecting tests.
*
* @todo Remove once bug in Chromedriver is fixed.
https://bugs.chromium.org/p/chromedriver/issues/detail?id=2758
*/
iframe.media-oembed-content {
width: 0 !important;
......
......@@ -82,6 +82,16 @@ protected function installModulesFromClassProperty(ContainerInterface $container
parent::installModulesFromClassProperty($container);
}
/**
* {@inheritdoc}
*/
protected function initFrontPage() {
parent::initFrontPage();
// Set a standard window size so that all javascript tests start with the
// same viewport.
$this->getSession()->resizeWindow(1024, 768);
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment