function AggregationAjaxTest::pressDialogButton
Same name and namespace in other branches
- main core/modules/views_ui/tests/src/FunctionalJavascript/AggregationAjaxTest.php \Drupal\Tests\views_ui\FunctionalJavascript\AggregationAjaxTest::pressDialogButton()
Presses a button inside the currently open Views UI modal dialog.
Parameters
string $text: The visible text of the button to press.
File
-
core/
modules/ views_ui/ tests/ src/ FunctionalJavascript/ AggregationAjaxTest.php, line 163
Class
- AggregationAjaxTest
- Tests editing a field's aggregation function via AJAX.
Namespace
Drupal\Tests\views_ui\FunctionalJavascriptCode
protected function pressDialogButton(string $text) : void {
$this->assertSession()
->elementExists('css', sprintf('.ui-dialog-buttonset button:contains("%s")', $text))
->press();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.