You are here

public function ElementContext::assertVerticalTab in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertVerticalTab()
  2. 8 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertVerticalTab()
  3. 8.3 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertVerticalTab()
  4. 8.4 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertVerticalTab()

Asserts that a specific vertical tab exists.

@Then I should see a :tab vertical tab @Then I should see the :tab vertical tab

Parameters

string $tab: The text of the tab.

ElementInterface $container: (optional) The element containing the vertical tab set.

Return value

\Behat\Mink\Element\NodeElement The vertical tab.

1 call to ElementContext::assertVerticalTab()
ElementContext::assertVerticalTabMultiple in tests/contexts/ElementContext.behat.inc
Asserts that a specific set of vertical tabs exists.

File

tests/contexts/ElementContext.behat.inc, line 222

Class

ElementContext
Contains miscellaneous step definitions for working with HTML elements.

Namespace

Acquia\LightningExtension\Context

Code

public function assertVerticalTab($tab, ElementInterface $container = NULL) {
  return $this
    ->assertSession()
    ->elementExists('named', [
    'link',
    $tab,
  ], $this
    ->assertVerticalTabs($container));
}