function OptionsFieldUIAllowedValuesTest::exposeOptionMachineName
Same name in other branches
- 10 core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php \Drupal\Tests\options\FunctionalJavascript\OptionsFieldUIAllowedValuesTest::exposeOptionMachineName()
Exposes the machine name input for a row.
Parameters
int $row: The row number.
1 call to OptionsFieldUIAllowedValuesTest::exposeOptionMachineName()
- OptionsFieldUIAllowedValuesTest::testOptionsAllowedValues in core/
modules/ options/ tests/ src/ FunctionalJavascript/ OptionsFieldUIAllowedValuesTest.php - Tests option types allowed values.
File
-
core/
modules/ options/ tests/ src/ FunctionalJavascript/ OptionsFieldUIAllowedValuesTest.php, line 356
Class
- OptionsFieldUIAllowedValuesTest
- Tests the Options field allowed values UI functionality.
Namespace
Drupal\Tests\options\FunctionalJavascriptCode
private function exposeOptionMachineName(int $row) : void {
$index = $row - 1;
$rows = $this->getSession()
->getPage()
->findAll('css', '#allowed-values-order tr.draggable');
$this->assertSession()
->buttonExists('Edit', $rows[$index])
->click();
$this->assertSession()
->waitForElementVisible('css', "[name='field_storage[subform][settings][allowed_values][table][{$index}][item][key]']");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.