Commit c7b8bc52 authored by catch's avatar catch

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
......@@ -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}
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment