From 40a0e8a2a75fd4e94d0ecf160127d4871247e109 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 22 Nov 2021 16:46:38 +0000 Subject: [PATCH] Issue #3250587 by lauriii, bnjmnm: \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5Test::testEditorFileReferenceIntegration fails on PostgreSQL --- .../tests/src/FunctionalJavascript/CKEditor5Test.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php index deb37c9455fb..f68274ddc67b 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5Test.php @@ -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); -- GitLab