Commit af165d2a authored by catch's avatar catch
Browse files

Issue #3250587 by lauriii, bnjmnm:...

Issue #3250587 by lauriii, bnjmnm: \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5Test::testEditorFileReferenceIntegration fails on PostgreSQL

(cherry picked from commit 40a0e8a2)
parent f6ffe6ae
......@@ -381,7 +381,10 @@ public function testEditorFileReferenceIntegration() {
$this->assertNotEmpty($image_upload_field = $page->find('css', '.ck-file-dialog-button input[type="file"]'));
$image = $this->getTestFiles('image')[0];
$image_upload_field->attachFile($this->container->get('file_system')->realpath($image->uri));
$assert_session->assertWaitOnAjaxRequest();
// Wait until preview for the image has rendered to ensure that the image
// upload has completed and the image has been downcast.
// @see https://www.drupal.org/project/drupal/issues/3250587
$this->assertNotEmpty($assert_session->waitForElement('css', '.ck-content img[data-entity-uuid]'));
$page->pressButton('Save');
$uploaded_image = File::load(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment