Files
bitvid/examples/reproducers/README.md
T
google-labs-jules[bot]andPR0M3TH3AN 1b7575eaab Add minimal reproducers for known bugs
- Added reproducer for mobile sidebar margin mismatch (tests/visual/overlay-layers.spec.ts).
- Added reproducer for Moderation UI "Show anyway" button visibility (tests/visual/moderation.spec.ts).
- Added reproducer for NIP-07 login unit test ReferenceError (tests/nostr-login-permissions.test.mjs).
- Added examples/reproducers/playwright.config.ts to support running these tests.
- Updated examples/reproducers/README.md with instructions.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 12:18:28 +00:00

55 lines
1.8 KiB
Markdown

# Fuzz Testing Reproducers
This directory contains reproducers for crashes found during fuzz testing.
These files contain the input that caused a crash and the error message.
## How to run
The reproducers are JSON files. To re-run a specific case, you can use the fuzz harness and load the JSON input, or manually import the function and call it with the input.
Example structure:
```json
{
"target": "functionName",
"input": { ... },
"error": { ... }
}
```
## Known Issues
- `buildVideoPostEvent` crashes on circular objects if not handled (Fixed).
- `normalizeAndAugmentMagnet` crashes on non-iterable `extraTrackers` (Fixed).
- `build...` functions crash on `null`/`undefined` input (Fixed).
# Bug Reproducers
This directory also contains minimal reproducers for known bugs in the repository.
## Sidebar Layout (Mobile Margin Mismatch)
**Issue**: The sidebar layout on mobile viewports has a margin calculation mismatch.
**Reproducer**: `examples/reproducers/issue-sidebar-layout/repro.spec.ts`
**Run**:
```bash
npx playwright test -c examples/reproducers/playwright.config.ts examples/reproducers/issue-sidebar-layout/repro.spec.ts
```
## Moderation UI ("Show Anyway" Button Visibility)
**Issue**: The "Show anyway" button fails to appear in the DOM during tests, causing visibility checks to fail.
**Reproducer**: `examples/reproducers/issue-moderation-ui/repro.spec.ts`
**Run**:
```bash
npx playwright test -c examples/reproducers/playwright.config.ts examples/reproducers/issue-moderation-ui/repro.spec.ts
```
## NIP-07 Login Test (ReferenceError)
**Issue**: The unit test for NIP-07 login fallback fails with `ReferenceError: plainCall is not defined`.
**Reproducer**: `examples/reproducers/issue-nip07-login/repro.mjs`
**Run**:
```bash
node examples/reproducers/issue-nip07-login/repro.mjs
```