left4me/l4d2web/tests/e2e
mwiegand c1ea5eb11e
test(files): cover binary editor UI
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>
2026-05-17 18:41:37 +02:00
..
__init__.py test(e2e): scaffold Playwright + live-server fixture 2026-05-16 21:00:45 +02:00
conftest.py test(files): add files-overlay e2e fixture 2026-05-17 18:35:43 +02:00
test_editor.py test(editor-v2): Playwright e2e + Tab→acceptCompletion fix 2026-05-17 02:15:51 +02:00
test_files_overlay.py test(files): cover binary editor UI 2026-05-17 18:41:37 +02:00
test_smoke.py test(e2e): scaffold Playwright + live-server fixture 2026-05-16 21:00:45 +02:00