E2E Testing with Playwright

How to add end-to-end tests to a React app with Playwright, including checkout flow testing for e-commerce, and run them automatically on every pull request.