diff --git a/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php b/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php index 326effb..d655707 100644 --- a/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php +++ b/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarIntegrationTest.php @@ -31,9 +31,9 @@ public function testToolbarToggling() { // Test that it is possible to toggle the toolbar tray. $this->assertElementVisible('#toolbar-link-system-admin_content', 'Toolbar tray is open by default.'); - $this->click('a#toolbar-item-administration'); + $this->click('#toolbar-item-administration'); $this->assertElementNotVisible('#toolbar-link-system-admin_content', 'Toolbar tray is closed after clicking the "Manage" button.'); - $this->click('a#toolbar-item-administration'); + $this->click('#toolbar-item-administration'); $this->assertElementVisible('#toolbar-link-system-admin_content', 'Toolbar tray is visible again after clicking the "Manage" button a second time.'); // Test toggling the toolbar tray between horizontal and vertical. @@ -42,11 +42,11 @@ public function testToolbarToggling() { $this->click('#toolbar-item-administration-tray button.toolbar-icon-toggle-vertical'); $this->assertTrue($this->wait(1000, 'jQuery("#toolbar-item-administration-tray").hasClass("toolbar-tray-vertical")')); - $this->assertElementVisible('div#toolbar-item-administration-tray.toolbar-tray-vertical', 'After toggling the orientation the toolbar tray is now displayed vertically.'); + $this->assertElementVisible('#toolbar-item-administration-tray.toolbar-tray-vertical', 'After toggling the orientation the toolbar tray is now displayed vertically.'); $this->click('#toolbar-item-administration-tray button.toolbar-icon-toggle-horizontal'); $this->assertTrue($this->wait(1000, 'jQuery("#toolbar-item-administration-tray").hasClass("toolbar-tray-horizontal")')); - $this->assertElementVisible('div#toolbar-item-administration-tray.toolbar-tray-horizontal', 'After toggling the orientation a second time the toolbar tray is displayed horizontally again.'); + $this->assertElementVisible('#toolbar-item-administration-tray.toolbar-tray-horizontal', 'After toggling the orientation a second time the toolbar tray is displayed horizontally again.'); } }