Opens icon.png and asserts the routed editor renders the binary branch of overlay_file_editor.html: replace-zone present, save button labelled "Replace" and disabled on open, download link pointing back at /files/download. The same /files/edit route serves both text and binary modes — the server picks the template branch from is_editable() + a magic-byte check. Without this test, a regression that flipped a binary file into the text branch would mean rendering raw PNG bytes inside an editable textarea (and a misleadingly working save button). Also asserts no textarea[data-rel-path] is in the DOM, so a future regression that left both branches enabled fails loudly. Per docs/superpowers/plans/2026-05-17-files-overlay-e2e-handoff.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_editor.py | ||
| test_files_overlay.py | ||
| test_smoke.py | ||