Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
1.0.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Sep 2022 at 09:16 UTC
Updated:
11 Oct 2022 at 14:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
anchal_gupta commentedI have Uploaded the patch. Please review it
Comment #3
anchal_gupta commentedComment #5
xjmThanks @Anchal_gupta for providing a patch!
So Stark is the best choice for the long term, but it won't have the classes these tests are relying on. It would be better to use
starterkit_themewhich will be closer to what was in Classy, just to do as little work as possible since this module will be end-of-life in about a year.This especially is not going to work. @sorabh.v6 observed that this file no longer exists in Classy, and it definitely never existed in Stark in the first place.
Adding credit for @sorabh.v6 for investigating the
media-embed-error.html.twigissue.media-embed-error.cssalso does not exist instarterkit_theme. We may need to copy that file and associated assets into this module. We may also need to create an entirely new test theme fixture to test this behavior, or just remove that whole part of the test as something we no longer support. I'll consult the maintainers.Comment #6
lauriiiCould we add Classy as a dev dependency for this module to make the tests pass?
Comment #7
xjmComment #8
wim leers+1 — that is the simplest possible solution IMHO 🤓
Comment #9
wim leersActually, can we first try switching to
starterkit_themeinstead?That worked fine for Quick Edit in #3309243: New test failures on D10: `UnknownExtensionException: Unknown themes: classy` 😊
Comment #10
lauriiiDepending on
classyis much more less likely to run into problems in future. Starterkit theme is likely to change in future and could lead into the tests breaking.Comment #11
wim leersComment #13
lauriiiComment #15
lauriiiIt looks like Classy is also broken because it should have a dependency on
drupal/stable. 🤦♂️Comment #16
lauriii#3311528: HEAD broken because of missing dependency on Stable has been resolved.
Comment #18
wim leersStill lots of new failures for #13 even after #3311528: HEAD broken because of missing dependency on Stable (although only 6 instead of 12):
I very much prefer my patch from #11 though, because then we don't have to deal with maintaining a
composer.jsonfile and how the d.o composer facade interacts with that. So re-testing that.Comment #20
wim leersClosed #3311028: 1.0.x Branch Tests Failing as a duplicate of this.
Comment #22
wim leersOnly now do I see what a collossally stupid mistake I made in #11 🙈
Comment #24
wim leersAh, I bet that #22 doesn't work simply because we need d.o's composer facade to make it be respected by Drupal CI… 😬
So … going ahead and committing #22, then I should start seeing the 6 failures that @lauriii's #13 saw.
Comment #25
wim leersComment #27
lauriiiI think #22 doesn't work because modules can't add dependencies on themes 🤓
Comment #28
wim leersComment #29
wim leers#27: argh. What a mess. Can't wait for Drupal to have way better validation, because it'd massively improve the DX.
What you say makes sense, sadly, @lauriii 😞
Comment #30
wim leers… although https://www.drupal.org/pift-ci-job/2485695 did work just fine 🤓
Like I said … a huge mess 🙈
Comment #31
wim leersThe remaining 2 failures are both in
\Drupal\Tests\ckeditor\Kernel\CKEditorTest, and they can only be tested in Drupal <10.0, because they depended on extensions providing explicit CKEditor 4 support.Comment #33
wim leersTo clarify
→ the changes in #3270438: Remove CKEditor 4 from core make it impossible to test this in Drupal >=10
And that's … reasonable. 👍
Comment #34
wim leersThe remaining failures are not happening on
10.0.x, only on9.4.xand9.5.x. This is due to #3306545: Replace ckeditor with ckeditor5 in the 9.4.x database dumps in Drupal 10.0.x & 10.1.x having modified the update path fixtures.I've tested this fix locally, should work for all branches 😊
Comment #35
wim leers