function WebDriverTestBase::initFrontPage

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::initFrontPage()
  2. 10 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::initFrontPage()
  3. 11.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::initFrontPage()

Overrides BrowserTestBase::initFrontPage

1 call to WebDriverTestBase::initFrontPage()
QuickEditLoadingTest::testConcurrentEdit in core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php
Tests Quick Edit on a node that was concurrently edited on the full node form.

File

core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php, line 89

Class

WebDriverTestBase
Runs a browser test using a driver that supports Javascript.

Namespace

Drupal\FunctionalJavascriptTests

Code

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.