diff --git a/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php index 755a1c3..ea476e4 100644 --- a/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php +++ b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php @@ -145,10 +145,22 @@ public function testBlocks() { // Exit edit mode. $this->toggleEditingMode(); } + } + + /** + * Tests that contextual links in custom blocks are changed. + * + * "Quick edit" is quickedit.module link. + * "Quick edit settings" is outside_in.module link. + */ + public function testCustomBlockLinks() { + $this->drupalGet('user'); + // Wait for contextual links ajax requests to finish. + // @todo Remove if drupalGet() includes this wait + // https://www.drupal.org/node/2830485 + $this->assertSession()->assertWaitOnAjaxRequest(); - // Check custom block labels. - // "Quick edit" is quickedit.module link. - // "Quick edit settings" is outside_in.module link. + $page = $this->getSession()->getPage(); $links = $page->findAll('css', "#block-custom .contextual-links li a"); $link_labels = []; /** @var \Behat\Mink\Element\NodeElement $link */