Problem/Motivation
https://git.drupalcode.org/issue/drupal-2921627/-/jobs/7892733#L471
Image (Drupal\Tests\ckeditor5\FunctionalJavascript\Image) ✔ Attribute retention during upcasting ✔ Image settings form ✔ Can upload svg ✔ Image arbitrary html ✘ Linkability ┐ ├ Behat\Mink\Exception\ElementNotFoundException: Element matching css "a[href="http://www.drupal.org/association"] img[src*="image-test.png"]" not found. │ │ /builds/issue/drupal-2921627/vendor/behat/mink/src/WebAssert.php:465 │ /builds/issue/drupal-2921627/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBaselineTrait.php:232 ┴
Steps to reproduce
Baseline MR (with no real changes):
https://git.drupalcode.org/project/drupal/-/merge_requests/14329
Repeat Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTest 100x:
https://git.drupalcode.org/issue/drupal-3566845/-/jobs/7981133 (failed 2x)
Proposed resolution
Use waitForElement() instead of directly calling elementExists() after pressButton().
https://git.drupalcode.org/project/drupal/-/merge_requests/14330
Repeat Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTest 100x:
https://git.drupalcode.org/issue/drupal-3566845/-/jobs/7981305 (passed 100/100)
Remaining tasks
Repeat test job forDrupal\Tests\ckeditor5\FunctionalJavascript\ImageTeston both MRs.Verify results.- Reviews / refinements.
- RTBC.
- Commit / rejoice.
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3566845
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kentr commentedComment #6
dwwOpened a pair of MRs for this.
Just waiting for the real MR's pipeline to get far enough that I can spawn the repeat test job, then I'll set this to NR.
Comment #7
dwwhttps://git.drupalcode.org/issue/drupal-3566845/-/jobs/7981133 (for the baseline) failed 2 / 100.
https://git.drupalcode.org/issue/drupal-3566845/-/jobs/7981305 (for the fix) is now running 100x.
Comment #8
dwwComment #9
dwwHah! How extremely appropriate. The main
FunctionalJavascriptrun on the baseline MR also failed onImageTest😂https://git.drupalcode.org/issue/drupal-3566845/-/jobs/7981076
Comment #10
dcam commentedOnce again, you can't argue with results. The MR looks good to me and it's in line with the other recent random test failure fixes.
Comment #13
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!