left4me/l4d2web/tests/e2e
mwiegand 8f5306db09
fix(server-detail): scroll the actual container, not the autoscroll target
The inline Log tab uses .tab-pane (height:18rem, overflow:auto) as its
scroll container. .log-stream has overflow:auto too but max-height:none
in tab-pane context, so it grows to fit and scrollHeight === clientHeight
— setting scrollTop on the <pre> was a no-op.

scrollAutoscrollTargets now walks up from each [data-autoscroll] target
until it finds an element whose CSS allows scrolling AND whose content
is actually overflowing (scrollHeight > clientHeight). sse.js delegates
to the same helper so per-line log appends scroll the right container.

e2e: new test asserts the .tab-pane is pinned to its bottom after 200
log lines are injected and the helper runs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 09:53:06 +02:00
..
__init__.py test(e2e): scaffold Playwright + live-server fixture 2026-05-16 21:00:45 +02:00
conftest.py test(e2e): console transcript pinned to bottom on tab + submit 2026-05-21 09:29:05 +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 feat(files-overlay): recursive directory delete + fix nested-file save misroute 2026-05-20 19:49:45 +02:00
test_overlays_create.py style(overlays): redesign create-overlay modal 2026-05-19 00:31:16 +02:00
test_server_detail.py fix(server-detail): scroll the actual container, not the autoscroll target 2026-05-21 09:53:06 +02:00
test_smoke.py test(e2e): scaffold Playwright + live-server fixture 2026-05-16 21:00:45 +02:00
test_workshop_section.py style(overlays): redesign workshop items section 2026-05-19 00:35:38 +02:00