Automated end-to-end tests for Ecommerce Demo Store using Playwright and TypeScript.
pages/— Page Object Models (TypeScript)tests/— Test specifications (TypeScript)playwright.config.ts— Playwright configuration (TypeScript)playwright-report/— HTML test reports.github/workflows/test.yml— CI/CD pipeline
npm installRun all tests:
npx playwright testView the HTML report:
npx playwright show-reportYou can use Testdino for cloud-based Playwright reporting.
Important:
Ensure yourplaywright.config.tsincludes both the HTML and JSON reporters.
The HTML and JSON reports must be available for Testdino to process your test results.
Example configuration:
reporter: [
['html', { outputFolder: 'playwright-report', open: 'never' }],
['json', { outputFile: './playwright-report/report.json' }],
]After your tests complete and the report is generated in playwright-report, upload it to Testdino:
npx --yes tdpw ./playwright-report --token="YOUR_TESTDINO_API_KEY" --upload-htmlReplace the token above with your own Testdino API key.
See all available commands:
npx tdpw --helpAdd the following step to your workflow after tests and report generation:
- name: Send Testdino report
run: |
npx --yes tdpw ./playwright-report --token="YOUR_TESTDINO_API_KEY" --upload-htmlEnsure your API key is correctly placed in the command.
Automated test runs and report merging are configured in .github/workflows/test.yml.
Pull requests and issues are welcome!
MIT