Open igmoweb opened 3 years ago
@shadyvb I'd forgotten about this one! Seems codeception covers it, not sure if it's possible to use the e2e-test-utils with that but I think we can close this out. Anything you think we should extract from here or capture elsewhere first?
I'm currently experimenting with e2e testing in a project. It started with some sort of automation that let me do some boring and long tasks quickly but I ended up using Jest and WordPress e2e utils.
I'd like to propose the introduction of a dev tools command (something that Rob has already thought about) in Altis that lets you run e2e tests (if there's any) with
composer dev-tools e2e
or similar.There are a few considerations before working on this feature:
--name=e2e
.sql
file.[@wordpress/scripts
npm package](https://www.npmjs.com/package/@wordpress/scripts). This set of scripts offers commands to launch the e2e tests along with[@wordpress/e2e-test-utils
package](https://www.npmjs.com/package/@wordpress/e2e-test-utils).@wordpress/scripts/config/jest-e2e.config
. Altis Jest config can extend that one and call abootstrap.js
defined by default.I've created a little Gist that can serve as a guide of what files are needed to run the e2e scripts: https://gist.github.com/igmoweb/1d64f820a45b61036022b1270b5c24e3