Drupal 10 is switching from CKEditor 4 to 5.
So, I installed the experimental CKEditor 5 module and am attempting to update my Behat tests to use CKEditor 5.
I am using an @javascript test in Behat on CircleCI to check my Drupal 8 site.
The standard I fill in "my field" with "value"
step fails for fields that use CKEditor. For example, for a long text field with the label Question, if I add a step:
And I fill in "Question" with "Will this work?"
Then I get the error: Element not interactable
As described in this question about CKEditor 4, there is a gist by johnennewdeeson that works for CKEditor 4 (which basically uses JS to find the editor instance and set the data), but it does not work for CKEditor 5 (CKEDITOR is not defined
error).
So how can I set the value of a text format field in Behat using CKEditor 5?
format
column as well as thevalue
? If you're able to describe a bit better what you mean by "the standard [...] step fails" it could help?