A CLI tool for drunk-tester-manual
npm install drunk-testerA CLI tool for recording and replaying browser interactions using Playwright.
``bash`
npm install -g drunk-tester
npm install --save-dev @playwright/test playwright
`bash`
drunk-tester record --url "https://example.com"
This opens a browser and shows a recording overlay. Interact with the page and use the overlay buttons to control recording.
`bash`
drunk-tester run
Runs all recorded tests. Use --headless false to see the browser.
- Finish BeforeEach: End setup phase
- Split Test: Create new test (prompts for name)
- Assert Text: Click button, then click element to assert its text
- Assert URL: Click button, then enter expected URL
- New Test Suite: Save current suite and start fresh
- Finish & Save: Stop recording and save
Playwright is configured to record videos and automatically keep them only for failed tests. Videos are saved in the playwright-report/data/ directory with unique names for each failed test.
Tests are saved in tests/` directory as Playwright test files. Each recording session creates one test suite with multiple tests.
- Node.js 14.0.0+
- Playwright browsers (installed automatically)
ISC