You are here

protected function ClaroTableDragTest::findWeightsToggle in Drupal 8

Finds the show/hide weight toggle element.

Parameters

string $expected_text: The expected text on the element.

Return value

\Behat\Mink\Element\NodeElement The toggle element.

Overrides TableDragTest::findWeightsToggle

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroTableDragTest.php, line 24

Class

ClaroTableDragTest
Runs TableDragTest in Claro.

Namespace

Drupal\FunctionalJavascriptTests\Theme

Code

protected function findWeightsToggle($expected_text) {
  $toggle = $this
    ->getSession()
    ->getPage()
    ->findLink($expected_text);
  $this
    ->assertNotEmpty($toggle);
  return $toggle;
}