function FieldDialogsTest::openFieldDialog
Same name in other branches
- 11.x core/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php \Drupal\Tests\views_ui\FunctionalJavascript\FieldDialogsTest::openFieldDialog()
Uses the 'And/Or Rearrange' link for fields to open a dialog.
1 call to FieldDialogsTest::openFieldDialog()
- FieldDialogsTest::testRemoveFieldHandler in core/
modules/ views_ui/ tests/ src/ FunctionalJavascript/ FieldDialogsTest.php - Tests removing a field through the rearrange dialog.
File
-
core/
modules/ views_ui/ tests/ src/ FunctionalJavascript/ FieldDialogsTest.php, line 80
Class
- FieldDialogsTest
- Tests the fields dialogs.
Namespace
Drupal\Tests\views_ui\FunctionalJavascriptCode
protected function openFieldDialog() {
$assert_session = $this->assertSession();
$page = $this->getSession()
->getPage();
$dropbutton = $page->find('css', '.views-ui-display-tab-bucket.field .dropbutton-toggle button');
$dropbutton->click();
$add_link = $page->findById('views-rearrange-field');
$this->assertTrue($add_link->isVisible(), 'And/Or Rearrange button found.');
$add_link->click();
$assert_session->assertWaitOnAjaxRequest();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.