Problem/Motivation

Source settings forms are rebuilt over AJAX in every plugin type that embeds a component form: block, field formatter, layout, views style, ui_patterns_ui (and later field widgets, ckeditor...etc).
Nothing covers this today and we want to find the remaining issues, correct them, as well as prevent regressions.

Proposed resolution

Core is moving from Nightwatch to Playwright, gitlab_templates has no Playwright job yet, projects wire their own.
We will reuse the Playwright setup of display_builder, same fixtures and CI jobs, as a blocking job with green tests only.

We start with one spec on the block form: switch a prop source, nest a component in a slot, embed a block plugin form, remove a source, save, reopen, check everything persisted.

Remaining tasks

- MR with the setup, the first spec and the CI jobs.
- Then one spec per plugin type (in this issue or in follow-up issue): field formatter, layout, views, ui_patterns_ui...

Command icon 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

just_like_good_vibes created an issue. See original summary.

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » pdureau
Status: Active » Needs review
pdureau’s picture

Status: Needs review » Reviewed & tested by the community

just_like_good_vibes’s picture

Assigned: pdureau » Unassigned
Status: Reviewed & tested by the community » Fixed

thanks pdureau.
And yes, first set of playwright tests are now landing into the codebase, youhou!
We will need to fine tune them on follow-up issues and add more for remaning sub-modules and other ajax-related issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.