Problem/Motivation

Failure on sqlite:

https://www.drupal.org/pift-ci-job/1384628

I think it's not waiting for the CKEditor to initialize before clicking on the button.

Proposed resolution

I think it should use CKEditorTestTrait::waitForEditor() before trying to click the button.

Comments

oknate created an issue. See original summary.

oknate’s picture

StatusFileSize
new1.81 KB
new811 bytes
new1.81 KB

Here's a patch and a fail patch.

oknate’s picture

Issue summary: View changes
cilefen’s picture

Status: Active » Needs review
wim leers’s picture

Title: ckeditor CKEditorIntegrationTest failure on Sqlite » \Drupal\Tests\ckeditor\FunctionalJavascript\CKEditorIntegrationTest fails on Sqlite
Status: Needs review » Reviewed & tested by the community

So we're making a timing-sensitive test assertion be non-time sensitive. 👍

wim leers’s picture

Issue tags: +sqlite

  • catch committed e17bb00 on 8.8.x
    Issue #3076609 by oknate: \Drupal\Tests\ckeditor\FunctionalJavascript\...

  • catch committed 709b40d on 8.7.x
    Issue #3076609 by oknate: \Drupal\Tests\ckeditor\FunctionalJavascript\...
catch’s picture

Version: 8.8.x-dev » 8.7.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.8.x and cherry-picked to 8.7.x, thanks!

oknate’s picture

Thank you! There's a problem, though.

This will fail on 8.7 without also committing CKEditorTestTrait.php.
It was added in #2994699: Create a CKEditor plugin to select and embed a media item from the Media Library, which is not in 8.7.

Either that trait needs to committed, or this need to be reverted in the 8.7 branch.

oknate’s picture

StatusFileSize
new3.05 KB

Here's a patch to add CKEditorTestTrait.

  • larowlan committed 25b584a on 8.7.x
    Revert "Issue #3076609 by oknate: \Drupal\Tests\ckeditor\...
larowlan’s picture

Status: Fixed » Needs work

Reverted on 8.7.x - can you post a combined patch with #11 and #2?

Thanks

oknate’s picture

Status: Needs work » Needs review
StatusFileSize
new811 bytes
new4.86 KB

Posting combined patch of #2 and #11, and reposting the fail patch from #2.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

  • catch committed 868da6c on 8.7.x
    Issue #3076609 by oknate, catch, larowlan: \Drupal\Tests\ckeditor\...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Whoops, reminder that backports fail in ways other than the patch not applying. Committed the combined patch with the trait to 8.7.x, thanks!

oknate’s picture

Fantastic, thanks for helping to get this resolved!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.