Automated end-to-end tests for Ecommerce demo store using Playwright.
pages/— Page Object Modelstests/— Test specificationsplaywright.config.js— Playwright configurationplaywright-report/— HTML test reports.github/workflows/test.yml— CI/CD pipeline
npm installRun all tests:
npx playwright testView the HTML report:
npx playwright show-reportTestdino enables cloud-based Playwright reporting.
Important:
Make sure yourplaywright.config.jsincludes both the HTML and JSON reporters.
The HTML report and JSON report 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