#45165 closed task (blessed) (fixed)
E2E Tests: Copy the setup and the e2e tests from the Gutenberg repository
Reported by: | youknowriad | Owned by: | youknowriad |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch commit |
Focuses: | javascript, administration | Cc: |
Description
This will allow us to avoid regressions to the editor going forward.
I'm not certain how this would be setup exactly. Whether we ship the tests as an npm package or just copy them on regular basis. But it would be good to run those tests on each WordPress commit.
Attachments (2)
Change History (21)
This ticket was mentioned in Slack in #core-js by adamsilverstein. View the logs.
6 years ago
This ticket was mentioned in Slack in #core-js by youknowriad. View the logs.
6 years ago
This ticket was mentioned in Slack in #core-editor by youknowriad. View the logs.
6 years ago
#7
@
6 years ago
Related issue in Gutenberg: https://github.com/WordPress/gutenberg/issues/12313
#9
@
6 years ago
Work on Gutenberg side is finished:
- Added wp-scripts test-e2e for running e2e tests in
@wordpress/scripts
package (https://github.com/WordPress/gutenberg/pull/12437) - Refactor public API of e2e test utils (https://github.com/WordPress/gutenberg/pull/13188)
- A bunch of utilities to work with WordPress (logging-in, installing plugins...) extracted to
@wordpress/e2e-test-utils
packages (https://github.com/WordPress/gutenberg/pull/13228) - The suite of tests for Gutenberg is now extracted to
@wordpress/e2e-tests
package (https://github.com/WordPress/gutenberg/pull/12465)
All three mentioned packages weren't published to npm yet. I expect it to happen as soon as WordPress 5.1 RC happens and trunk
is opened again.
We will need to investigate how to bring the same setup to WordPress core.
This ticket was mentioned in Slack in #core-js by gziolo. View the logs.
6 years ago
This ticket was mentioned in Slack in #hosting-community by gziolo. View the logs.
6 years ago
#12
@
5 years ago
- Keywords has-patch added
Patch is up, you can see it live in this PR https://github.com/WordPress/wordpress-develop/pull/69
I think it's ready for reviews and merge.
The idea is that for now, it just puts the infrastructure in place to allow adding e2e tests to Core (not specific to Gutenberg e2e tests).
#13
@
5 years ago
Reviewed the code and left a single simple comment on Github. Beyond that it looks good.
This should warrant a dev-note with a basic explanation regarding Docker as well as Puppeteer as it's likely there's developers around who've yet to work with those tools. Especially running Puppeteer with the GUI as well as a few examples of basic tests would be really helpful there.
Shouldn't be a blocker for merging this though, more of a follow-up. I'd suggest discussing this in the upcoming core-js chat and, unless there's further reviews requesting changes, merging this.
#14
@
5 years ago
Added a few very basic tests for wp-login.php
I wrote to get a basic feel for things. Might be useful for the future.
This ticket was mentioned in Slack in #core-js by aduth. View the logs.
5 years ago
#16
@
5 years ago
- Keywords commit added
This seems to be in good shape. We should get it in and keep iterating on tests and synchronisation.
#45216 was marked as a duplicate.