mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 03:42:26 +00:00
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]>
This commit is contained in:
1 parent
b48320fc9a
commit
1b7575eaab
5 files changed
+561
-16
No files matched your search
@@ -21,3 +21,34 @@ Example structure:
|
||||
- `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
|
||||
```
|
||||
Reference in new issue
Block a user