protected function QuickEditImageEditorTestTrait::awaitImageEditor in Drupal 9
Awaits the 'image' in-place editor.
1 call to QuickEditImageEditorTestTrait::awaitImageEditor()
- QuickEditImageTest::testImageInPlaceEditor in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ QuickEditImageTest.php - Tests that quick editor works correctly with images.
File
- core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ QuickEditImageEditorTestTrait.php, line 14
Class
Namespace
Drupal\Tests\quickedit\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"]'));
}