Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block should have basic e2e tests written #49

Open
DevinWalker opened this issue Apr 18, 2022 · 1 comment
Open

Block should have basic e2e tests written #49

DevinWalker opened this issue Apr 18, 2022 · 1 comment
Assignees

Comments

@DevinWalker
Copy link
Member

DevinWalker commented Apr 18, 2022

Details

This is the perfect time to get started with end to end testing the block.

E2E w/ Gutenberg Info

It looks like Gutenberg is in the process of migrating from Puppeteer to Playwright: WordPress/gutenberg#38851

There's tons of resources above, but it's going to take a bit of digging to fully understand how we can utilize this correctly.

📑 Good Resources:

A few helpful resources I found while doing research...

Migrating WordPress e2e tests to Playwright

https://make.wordpress.org/core/2022/03/23/migrating-wordpress-e2e-tests-to-playwright/

@wordpress/e2e-test-utils: It is a utility package with basic tests that are reused by other E2E test packages and suites in Gutenberg, in WordPress Core and by third parties. This package is now deprecated and a new package @wordpress/e2e-test-utils-playwright was introduced internally for the migration process.


E2E Tests Utils Playwright Package:

https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils-playwright


@DevinWalker DevinWalker self-assigned this Apr 28, 2022
@DevinWalker
Copy link
Member Author

Ok - We're doing a pivot here because @JasonTheAdams kindly recommended we stick to using Ghost Inspector, which we're using on GiveWP and the website, to run e2e tests.

@Benunc has shown me the ropes on this and I'm going to start building out some tests today using WP Sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant