You are here

protected function PanelsIPETrait::getTab in Lightning Layout 8

Opens a tab in the Panels IPE tray and returns its contents.

Parameters

string $label: The label of the tab.

Return value

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

1 call to PanelsIPETrait::getTab()
PanelsIPETrait::getBlockForm in tests/src/Traits/PanelsIPETrait.php
Opens the form to add a block to the Panels IPE layout.

File

tests/src/Traits/PanelsIPETrait.php, line 53

Class

PanelsIPETrait

Namespace

Drupal\Tests\lightning_layout\Traits

Code

protected function getTab($label) {
  $tray = $this
    ->getTray();
  $tray
    ->clickLink($label);
  $assert = $this
    ->assertSession();
  $assert
    ->assertWaitOnAjaxRequest();
  return $assert
    ->elementExists('css', '.ipe-tabs-content', $tray);
}