You are here

private function PanelizerWizardTest::waitForButton in Lightning Layout 8

Waits for a button with a specified locator.

Parameters

string $locator: The button ID, value or alt string.

File

tests/src/FunctionalJavascript/PanelizerWizardTest.php, line 119

Class

PanelizerWizardTest
Tests Lightning Layout's integration with Panelizer's wizard.

Namespace

Drupal\Tests\lightning_layout\FunctionalJavascript

Code

private function waitForButton($locator) {
  $button = $this
    ->assertSession()
    ->waitForButton($locator);
  $this
    ->assertNotEmpty($button);
  return $button;
}