A comprehensive guide to integrating TestDriver with Playwright for automated test generation.
lifecycle/prerun.yaml
.TD_API_KEY
).lifecycle/prerun.yaml
for Playwright installation and generation.testdriver/test.yaml
) for your main test logic..github/workflows/playwright.yaml
lifecycle/prerun.yaml
to install and launch Playwright before your test runs. This keeps the setup separate from your actual test logic:
testdriver/test.yaml
file can then focus on the actual test logic:
Trigger the Workflow
main
branch.Review the Pull Request
pw-test.spec.js
).Merge the Pull Request
testdriver/pw-test.spec.js
TestDriver / Generate Playwright Test
will be created.lifecycle/prerun.yaml
for Playwright installation and setup to separate concerns from your main test logic.