Automated end-to-end testing suite for the Test Assistant AI system, utilizing Playwright and Cucumber (BDD).
- Framework: Playwright
- BDD Framework: Cucumber (Cucumber-js)
- Language: TypeScript
- Reporting: Allure Reports
- Node.js 20+
- npm
Install the necessary dependencies:
npm installInstall Playwright browsers:
npx playwright installThe project uses npm scripts to execute tests in different environments.
| Command | Description |
|---|---|
npm run test:run |
Run tests in DEV environment (default) |
npm run test:default |
Run tests using the default profile |
npm run wip:test:dev |
Run tests tagged with @wip in DEV |
npm run wip:test:test |
Run tests tagged with @wip in TEST |
You can set the target environment using TEST_ENV:
devtestuatstaging
Example:
cross-env TEST_ENV=staging npm run test:runWe use Allure for generating detailed test reports.
-
Generate Report (after test execution):
npm run generate:allure-report
-
Open Report:
npm run open:allure-report
features/: Cucumber.featurefiles (Gherkin syntax)pages/: Page Object Models (POM)step-definitions/: TypeScript implementation of stepssupport/: Helper functions and hooksplaywright.config.ts: Main configuration filecucumber.js: Cucumber configuration
- Create a
.featurefile infeatures/. - Implement step definitions in
step-definitions/. - Use Page Objects in
pages/to interact with the UI.