richagupta09/PlaywrightTypeScriptFramework — reverse-engineered prompt

Reverse engineered prompt

Build me a clean Playwright and TypeScript test automation project for SauceDemo that feels like something a real QA team could use and grow.

I want it organized so the browser tests are easy to read and maintain, with page objects, shared fixtures, reusable helpers, and central test data for users like the standard and locked out accounts. Cover the main UI flows, including login success and failure, inventory sorting, adding and removing items, cart badge behavior, and the full checkout path from customer info to order completion. Also include a small set of API tests for fetching users and creating a user.

Please make it work for dev, stage, and prod style environments with separate config options, and set it up to generate an HTML report and Allure results. I also want a GitHub Actions workflow so tests run automatically on push and upload the report artifact.

If anything is unclear, look up the current Playwright docs and SauceDemo behavior and make sensible choices.

Want more depth? Deep Reverse