X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftoolbar%2Ftests%2Fsrc%2FFunctionalJavascript%2FToolbarIntegrationTest.php;fp=web%2Fcore%2Fmodules%2Ftoolbar%2Ftests%2Fsrc%2FFunctionalJavascript%2FToolbarIntegrationTest.php;h=fd163985e75068ffcde1865bae949ea11d8bccd4;hp=c3b3d9abc60939d46374c4ad17a83ff56eea758e;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php b/web/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php index c3b3d9abc..fd163985e 100644 --- a/web/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php +++ b/web/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php @@ -2,14 +2,14 @@ namespace Drupal\Tests\toolbar\FunctionalJavascript; -use Drupal\FunctionalJavascriptTests\JavascriptTestBase; +use Drupal\FunctionalJavascriptTests\WebDriverTestBase; /** * Tests the JavaScript functionality of the toolbar. * * @group toolbar */ -class ToolbarIntegrationTest extends JavascriptTestBase { +class ToolbarIntegrationTest extends WebDriverTestBase { /** * {@inheritdoc} @@ -27,7 +27,12 @@ class ToolbarIntegrationTest extends JavascriptTestBase { ]); $this->drupalLogin($admin_user); + // Set size for horizontal toolbar. + $this->getSession()->resizeWindow(1200, 600); $this->drupalGet(''); + $this->assertNotEmpty($this->assertSession()->waitForElement('css', 'body.toolbar-horizontal')); + $this->assertNotEmpty($this->assertSession()->waitForElementVisible('css', '.toolbar-tray')); + $page = $this->getSession()->getPage(); // Test that it is possible to toggle the toolbar tray.