function QuickEditImageEditorTestTrait::awaitImageEditor
Same name in other branches
- 9 core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditImageEditorTestTrait.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditImageEditorTestTrait::awaitImageEditor()
Awaits the 'image' in-place editor.
1 call to QuickEditImageEditorTestTrait::awaitImageEditor()
- QuickEditImageTest::testImageInPlaceEditor in core/
modules/ image/ tests/ src/ FunctionalJavascript/ QuickEditImageTest.php - Tests that quick editor works correctly with images.
File
-
core/
modules/ image/ tests/ src/ FunctionalJavascript/ QuickEditImageEditorTestTrait.php, line 14
Class
Namespace
Drupal\Tests\image\FunctionalJavascriptCode
protected function awaitImageEditor() {
$this->assertJsCondition('document.querySelector(".quickedit-image-field-info") !== null', 10000);
$quickedit_entity_toolbar = $this->getSession()
->getPage()
->findById('quickedit-entity-toolbar');
$this->assertNotNull($quickedit_entity_toolbar->find('css', 'form.quickedit-image-field-info input[name="alt"]'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.