scaffold-command icon indicating copy to clipboard operation
scaffold-command copied to clipboard

Allow adding E2E test suite

Open swissspidy opened this issue 5 years ago • 2 comments

Feature Request

In https://core.trac.wordpress.org/changeset/45570, a new E2E test setup was added to WordPress core.

Maybe we can provide a similar setup for the plugin scaffolding so that developers can easily write E2E tests themselves.

Not sure how feasible that would be.

swissspidy avatar Jun 27 '19 12:06 swissspidy

One of the tricky things here is navigating what happens when plugins might have their own package.json file as part of implementing this will be adding a dependency to the @wordpress/scripts package (for exposing wp-scripts test-e2e.

nerrad avatar Jun 27 '19 12:06 nerrad

I think we can skip creating the package.json file then and show a warning with the npm command to run to adapt the file.

schlessera avatar Jul 16 '19 17:07 schlessera