mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 20:02:26 +00:00
test(smoke): add smoke-test.mjs harness
Implements a standalone smoke test script that orchestrates a local relay, app server, and Playwright browser to verify login, video publishing, and DM decryption flows. This satisfies the `smoke-agent` weekly task. - Adds `scripts/agent/smoke-test.mjs` - Verifies app functionality via `window.__bitvidTest__` - Checks `decryptDM` integration from `js/dmDecryptor.js` Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
c692d46520
commit
fe6bfd71fc
2 files changed
+379
-261
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Smoke Agent Task - Completed
|
||||
|
||||
**Date:** 2026-02-24
|
||||
**Agent:** smoke-agent
|
||||
**Status:** Completed
|
||||
|
||||
## Summary
|
||||
Implemented a new smoke test harness `scripts/agent/smoke-test.mjs` that orchestrates:
|
||||
1. Local Nostr relay (via `scripts/agent/simple-relay.mjs`).
|
||||
2. Local App Server (`npx serve`).
|
||||
3. Headless Browser (Playwright).
|
||||
|
||||
The test verifies:
|
||||
- Navigation to the app.
|
||||
- Login via `loginWithNsec` (bypassing UI but exercising auth flow).
|
||||
- Publishing a Video Event (Kind 30078) via `nostrClient` and verifying on relay.
|
||||
- DM Roundtrip: Sending an encrypted DM (Kind 4) and verifying decryption using the app's `dmDecryptor.js` module.
|
||||
|
||||
## Artifacts
|
||||
- `scripts/agent/smoke-test.mjs`
|
||||
Reference in new issue
Block a user