File size: 989 Bytes
012d0ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | # Phase 4 — Test Plan
## Automated
- [ ] `node test_renderer.js` — all pass (no regression)
## TXT
- [ ] Import UTF-8 Arabic .txt → editor shows text
- [ ] Import with BOM → BOM stripped
- [ ] Export → `bayan-document.txt` downloads
- [ ] Round-trip: export → re-import preserves content
- [ ] Import triggers analysis
## DOCX
- [ ] Import .docx via Mammoth → plain text in editor
- [ ] Export .docx → opens in Word, RTL Arabic
- [ ] Corrupt file → error toast, no crash
## PDF
- [ ] Export PDF → `bayan-document.pdf` downloads
- [ ] Arabic renders in PDF (visual)
- [ ] No highlight markup in export
## Long document
- [ ] Import >5000 chars → full text loaded
- [ ] Banner shown
- [ ] Export uses full text
## Phase 1 regression
- [ ] Cursor preserved after import + analyze
- [ ] Duplicate highlights work
- [ ] `<script>` in import escaped
## UI
- [ ] Import/Export in dark + light theme
- [ ] Empty editor disables export
- [ ] aria-labels present
|