Problem/Motivation
We are trying to deprecate node_add_body_field in #3489266: Deprecate node_add_body_field() but currently NodeTypeForm is calling this for the testing profile (since #3488742: Stop calling node_add_body_field() from NodeTypeForm) just for these Nightwatch tests.
In #3467492: [policy, no patch] Replace Nightwatch with Playwright I think we all agree that Nightwatch is unreliable, and looking at the tests they are doing an awful lot of costly operations via the UI that if it were a PHP test we could use API to do for us (install the site, install modules, set up content types, etc).
Instead of adding even more UI clunk to Nightwatch in order to setup a body field, let's just convert these to WebDriver tests. There's nothing in there that can't be done in PHP afaict.
Proposed resolution
Convert ckEditor5EditorHeightTest to a WebDriver test.
Remaining tasks
Do it
Issue fork drupal-3517024
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:
- 3517024-convert-ckeditor5editorheighttest-to
changes, plain diff MR !11825
Comments
Comment #3
acbramley commentedRepeat job passed 100/100 times.
https://git.drupalcode.org/issue/drupal-3517024/-/jobs/4965455
Comment #4
mstrelan commentedThis looks great and is so much simpler.
Comment #5
acbramley commentedNeeds a rebase now #3517023: Convert ckEditor5CodeSyntaxTest to WebDriver test is in
Comment #6
acbramley commentedBack to RTBC
Comment #8
catchThat is so much more straightforward. Committed/pushed to 11.x and cherry-picked to 11.2.x, thanks!