Problem/Motivation

We are missing tests, let's try to setup e2e testing for the Display Builder UX.
Goal is to have e2e tests that can run locally and in ci to avoid big regressions on the UX.

First we evaluate Playwright, then Cypress if needed.
There is an ongoing discussion to replace nightwatch with playwright in core, but seems not so obvious.

Sources to work from:

Some starting scenarios

Display Builder

  • Log in as admin
  • Create a generic Display Builder (testing config, all islands enabled)
  • Enable / disable islands
  • Check it's working

Display Builder usage

Before: login, create DB.

  • Open libraries
  • Drag a component
  • Drag a block in this component (token)
  • Set component prop (at least one)
  • Set component styles (at least one)
  • Set block value
  • Set block styles

Other tests

Need to evaluate the benefit of any unit/kernel tests.
Functional and functionalJS could be worth it.

For all cases evaluate Test helpers.

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

mogtofu33 created an issue. See original summary.

mogtofu33’s picture

Title: Testing e2e with Playwright » Testing e2e
Issue summary: View changes
mogtofu33’s picture

Issue summary: View changes
mogtofu33’s picture

Issue summary: View changes

mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Needs work » Fixed

Playwright initiated, we'll see for more tests and to put them in the ci on a follow up.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.