private function ElementContext::assertContextualLinks in Lightning Core 8.4
Same name and namespace in other branches
- 8.5 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertContextualLinks()
- 8 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertContextualLinks()
- 8.2 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertContextualLinks()
- 8.3 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertContextualLinks()
Asserts that an element has contextual links.
Parameters
\Behat\Mink\Element\ElementInterface $element: The element which is expected to contain contextual links.
Return value
\Behat\Mink\Element\ElementInterface The list of contextual links.
2 calls to ElementContext::assertContextualLinks()
- ElementContext::assertBlockHasContextual in tests/
contexts/ ElementContext.behat.inc - Asserts that a block has contextual link(s).
- ElementContext::assertContextualLink in tests/
contexts/ ElementContext.behat.inc - Asserts that an element has a specific contextual link.
File
- tests/
contexts/ ElementContext.behat.inc, line 498
Class
- ElementContext
- Contains miscellaneous step definitions for working with HTML elements.
Namespace
Acquia\LightningExtension\ContextCode
private function assertContextualLinks(ElementInterface $element) {
return $this
->assertSession()
->elementExists('css', 'ul.contextual-links', $element);
}