Race condition between CKEditor5 JavaScript and ckEditor5CodeSyntaxTest

Created on 12 November 2023, 10 months ago
Updated 6 January 2024, 8 months ago

Problem/Motivation

Both on the Drupal CI and GitLab end of test-things the nightwatch job has (for an unknown period) a WebDriverError in Tests/ckEditor5CodeSyntaxTest.js:

│   Error   Error while running .setElementValue() protocol action: element    │
│   not interactable                                                           │
│   (Session info: headless chrome=106.0.5249.103)                             │
│   (Driver info: chromedriver=106.0.5249.61 (511755355844955cd3e264779baf0d   │
│   d38212a4d0-refs/branch-heads/5249@{#569}),platform=Linux                   │
│   5.4.241-150.347.amzn2.x86_64 x86_64)                                       │

It turns out there is a race condition between CKEditor5 JavaScript trying to fill the Code Block textarea with its default values whilst at the same time ckEditor5CodeSyntaxTest is trying to fill the same textarea with its values.

There's a (very) lengthy explanation in #9 🐛 Race condition between CKEditor5 JavaScript and ckEditor5CodeSyntaxTest Closed: won't fix .

Steps to reproduce

Proposed resolution

There seems no way to prevent the race condition, buy Nightwatch is resilient enough and detects when its changes are overwritten and keeps retrying until it "wins", I'm going to mark this one as a "won't fix".

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: won't fix

Version

11.0 🔥

Component
Javascript 

Last updated 1 day ago

Created by

🇳🇱Netherlands Spokje

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024