🛑 The Problem
We have zero End-to-End (E2E) test coverage. We could accidentally break the main 'Import Repository' button, and our unit tests would still pass, but users wouldn't be able to use the app. We need a browser automation test to act as a final safety net.
💡 The Solution
Install Playwright and write a single, highly-reliable smoke test for the critical user journey: visiting the homepage, importing a repo, and viewing the dashboard.
🛠️ Implementation Details
- Run
pnpm create playwright to scaffold the setup.
- Write a test script
e2e/import.spec.ts.
- The test should:
page.goto('/')
page.fill('input[name="repo"]', 'voidswift/Forge-Lens')
page.click('button[type="submit"]')
page.waitForURL('**/dashboard/**')
expect(page.locator('h1')).toContainText('Health Score')
- Add a
pnpm test:e2e script to package.json.
✅ Acceptance Criteria
Ready to tackle this? Comment .take below to get automatically assigned!
🛑 The Problem
We have zero End-to-End (E2E) test coverage. We could accidentally break the main 'Import Repository' button, and our unit tests would still pass, but users wouldn't be able to use the app. We need a browser automation test to act as a final safety net.
💡 The Solution
Install Playwright and write a single, highly-reliable smoke test for the critical user journey: visiting the homepage, importing a repo, and viewing the dashboard.
🛠️ Implementation Details
pnpm create playwrightto scaffold the setup.e2e/import.spec.ts.page.goto('/')page.fill('input[name="repo"]', 'voidswift/Forge-Lens')page.click('button[type="submit"]')page.waitForURL('**/dashboard/**')expect(page.locator('h1')).toContainText('Health Score')pnpm test:e2escript to package.json.✅ Acceptance Criteria
Ready to tackle this? Comment
.takebelow to get automatically assigned!