mehmetA58/playwright-template-framework — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a reusable Playwright test automation template for a web shop style app. I want it to support normal browser end to end tests and simple API tests, with a clean setup that’s easy to grow later.

Please include separate environment configs like dev, qa, uat, and prod, so I can run the same tests against different URLs and users. Add example page objects for a home page, product page, and cart page, plus one sample ecommerce test that shows the flow clearly. I also want useful reports, including the regular Playwright HTML report and Allure reporting.

Make sure screenshots, videos, logs, and test results are saved in a sensible artifacts area, and add a cleanup command so old files don’t pile up. Use TypeScript and keep the project easy for someone lightly technical to run with npm install, npm test, a clean command, and an environment option like ENV=dev. Look up current docs online if needed.

Want more depth? Deep Reverse