Playwright-Mocha Automation Scripts

Заказчик: AI | Опубликовано: 27.01.2026

I have an existing Mocha-based test framework and now need a series of Playwright scripts added to it. The focus is two-fold: reliable user-level interactions—clicking through flows, typing into dynamic fields—and targeted data scraping while those journeys run. Everything must remain in plain JavaScript, fitting cleanly into the folder and helper structure already in place. Scope • Extend the current Mocha setup with Playwright page objects and utilities. • Cover key journeys I will share on kickoff, exercising clicks, form fills, and validations. • Extract specific data points during each run and expose them in JSON reports. • Keep the code modular so future test cases can plug in with minimal refactor. Deliverables 1. Fully working Playwright test files integrated under the existing Mocha runner. 2. Re-usable helpers for both interaction steps and scraping calls. 3. A concise README explaining setup, execution commands, and how to add new specs. 4. Passing demo run recorded in CI or a video capture to confirm everything behaves as expected. Acceptance criteria • All scripts execute with npm test on a clean checkout. • No brittle selectors—use robust locators or test IDs I provide. • Data scraping outputs match the sample JSON schema. • Coding style is consistent with the current ESLint rules. I will supply repo access and target URLs once we start. Let me know if any clarification is needed before you dive in.