function TableDragTest::findWeightsToggle
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php \Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest::findWeightsToggle()
- 10 core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php \Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest::findWeightsToggle()
- 11.x core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php \Drupal\FunctionalJavascriptTests\TableDrag\TableDragTest::findWeightsToggle()
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.
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ TableDrag/ TableDragTest.php, line 571
Class
- TableDragTest
- Tests draggable table.
Namespace
Drupal\FunctionalJavascriptTests\TableDragCode
protected function findWeightsToggle($expected_text) {
$toggle = $this->getSession()
->getPage()
->findButton($expected_text);
$this->assertNotEmpty($toggle);
return $toggle;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.