How cc-qa-projects/playwright2026 works
This repository is a Demoblaze UI-automation framework. Its main workflow is to run Gherkin scenarios through Cucumber step definitions and reusable page objects, which drive a browser against the site. Cucumber also produces Allure results; an optional report-debugging path can summarize failures and request an OpenAI analysis. The README documents coverage across authentication, catalog, cart, checkout, and site modals. Step and page-object wiring is described in the README but their source was not sampled, so detailed calls between individual modules are omitted.
Main entry points: cucumber.mjs Cucumber config · step-definitions Step definitions · run-cucumber-allure.mjs Allure run wrapper · debug-allure-failures.mjs Failure analyzer
Components 19
Scenario specs
- Authentication
tests/features/authentication.feature - Catalog
tests/features/catalog.feature - Cart
tests/features/add-items-to-cart.feature - Checkout
tests/features/checkout.feature - Site modals
tests/features/site-modals.feature
Test runtime
- Cucumber config
cucumber.mjs - Step definitions
tests/step-definitions - Scenario hooks
tests/step-definitions/hooks.js - App context
tests/step-definitions/helpers/app-context.js - Test data
tests/step-definitions/helpers/test-data.js
Browser interaction
- Page objects
tests/pages - Playwright browser
Reporting and diagnosis
- Allure results
reports - Allure run wrapper
reports/scripts/run-cucumber-allure.mjs - Failure analyzer
reports/scripts/debug-allure-failures.mjs - Debug reports
reports
Other components
- Suite operator
- Demoblaze
- OpenAI API
Connections 21
- Suite operator → Cucumber config: starts suite
- Cucumber config → Authentication: loads scenarios
- Cucumber config → Catalog: loads scenarios
- Cucumber config → Cart: loads scenarios
- Cucumber config → Checkout: loads scenarios
- Cucumber config → Site modals: loads scenarios
- Cucumber config → Step definitions: loads definitions
- Cucumber config → Scenario hooks: loads hooks
- Step definitions → Page objects: uses page objects
- Step definitions → App context: uses context
- Step definitions → Test data: uses test data
- Page objects → Playwright browser: drives browser
- Playwright browser → Demoblaze: interacts with site
- Cucumber config → Allure results: writes results
- Suite operator → Allure run wrapper: starts report run
- Allure run wrapper → Cucumber config: runs suite
- Allure run wrapper → Allure results: generates report
- Allure run wrapper → Failure analyzer: optionally invokes
- Failure analyzer → Allure results: reads results
- Failure analyzer → Debug reports: writes summaries
- Failure analyzer → OpenAI API: requests diagnosis