Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,9 @@ Delete Password → DELETE /api/passwords/:id
- [HaveIBeenPwned API](https://haveibeenpwned.com/API/v3)
- [Socket.io Documentation](https://socket.io/docs/v4/)
- [MongoDB Docs](https://www.mongodb.com/docs/)

## Test Coverage & Results

[![E2E](https://github.com/Arshdeep225615024/SecurePasswordManager/actions/workflows/e2e.yml/badge.svg?branch=main)](https://github.com/Arshdeep225615024/SecurePasswordManager/actions/workflows/e2e.yml)

See the full write-up here: [docs/test-report.md](docs/test-report.md)
26 changes: 26 additions & 0 deletions docs/test-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Test Coverage & Results (Playwright)

[![E2E](https://github.com/Arshdeep225615024/SecurePasswordManager/actions/workflows/e2e.yml/badge.svg?branch=main)](https://github.com/Arshdeep225615024/SecurePasswordManager/actions/workflows/e2e.yml)

_Last updated: **REPLACE_WITH_DATE**_

This project uses **Playwright** for E2E tests. CI runs:
- **Mocked job**: fast checks with API/network mocks.
- **Live job** (optional): points to a real URL when provided.

### Latest CI
- **Workflow**: [e2e.yml](https://github.com/Arshdeep225615024/SecurePasswordManager/actions/workflows/e2e.yml)
- **Artifacts** (HTML report, videos, traces): download from the latest run’s **Artifacts** section.

### Test Suites
| Suite / File | Key Scenarios |
|---|---|
| `tests/smoke.spec.js` | Home renders, strength meter reacts |
| `tests/critical.spec.js` | Strength meter weak→strong→very strong • Breach check (mock HIBP path) • Signup form validation & submit |
| `tests/live.smoke.spec.js` | Home loads & `/health` OK (only with live base URL) |

### Run locally
\`\`\`bash
npm run test:e2e
npx playwright show-report
\`\`\`