protected function QuickEditImageEditorTestTrait::awaitImageEditor in Drupal 8
Awaits the 'image' in-place editor.
1 call to QuickEditImageEditorTestTrait::awaitImageEditor()
- QuickEditImageTest::testImageInPlaceEditor in core/
modules/ image/ tests/ src/ FunctionalJavascript/ QuickEditImageTest.php - Test 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"]'));
}