You are here

private function PanelsInPlaceEditorTest::waitForVisibleElement in Lightning Layout 8

Waits for the specified selector to be visible.

Parameters

string $selector: The selector engine name. See ElementInterface::findAll() for the supported selectors.

string|array $locator: The selector locator.

File

tests/src/FunctionalJavascript/PanelsInPlaceEditorTest.php, line 115

Class

PanelsInPlaceEditorTest
Tests Lightning Layout's integration with the Panels in-place editor.

Namespace

Drupal\Tests\lightning_layout\FunctionalJavascript

Code

private function waitForVisibleElement($selector, $locator) {
  $element = $this
    ->assertSession()
    ->waitForElementVisible($selector, $locator);
  $this
    ->assertNotEmpty($element);
  return $element;
}