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.
Comments
Comment #2
mogtofu33 commentedComment #3
mogtofu33 commentedComment #4
mogtofu33 commentedComment #7
mogtofu33 commentedPlaywright initiated, we'll see for more tests and to put them in the ci on a follow up.