left4me/l4d2web/tests/e2e
mwiegand 81ba4ac83a
test(files): cover filename-rename on save
Opens server.cfg, changes the filename input to server-renamed.cfg,
clicks Save, and asserts: the routed modal closes, the old name is
gone from disk, the new name carries the original content, and the
tree row swaps over. Pins the rename-on-save branch in
routedSaveClicked (the non-is_new path that diffs originalLeaf vs
editedFilename and emits `new_path`).

Deliberately omits __filesEditor.setContent — rename should preserve
the textarea-seeded content. A regression that wrote an empty body
fails on the content-equality assertion.

Tier 1 complete: 7 tests + fixture extension. Full suite runs in
<10s on warm Chromium.

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:46:40 +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 filename-rename on save 2026-05-17 18:46:40 +02:00
test_smoke.py test(e2e): scaffold Playwright + live-server fixture 2026-05-16 21:00:45 +02:00