diff --git a/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php index 1eba971..93d574f 100644 --- a/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php +++ b/core/modules/outside_in/tests/src/FunctionalJavascript/OutsideInBlockFormTest.php @@ -68,6 +68,11 @@ public function testBlocks($block_id, $new_page_text, $element_selector, $label_ $page->find('css', $toolbar_item)->click(); $this->waitForElement("{$toolbar_item}.is-active"); } + /** @var \Behat\Mink\Element\NodeElement[] $links */ + $links = $this->getSession()->getPage()->findAll('css', "{$block_selector} .contextual-links li a"); + if (count($links) > 1) { + self::assertEquals('Quick edit', $links[0]->getText(), "Expected 'Quick edit' to be the first contextual link of the block with id $block_id, but it wasn't."); + } $this->toggleEditingMode(); if (isset($toolbar_item)) { $this->waitForNoElement("{$toolbar_item}.is-active");