Files
clide/legacy/tests/snapshots/test_app_snapshots.py
T
jpmschweitzerandClaude Opus 4.7 a355751437 move python clide to legacy/
Clide is being rebuilt as a Flutter desktop app. The Python Textual
implementation moves wholesale into legacy/ rather than being deleted:
its pane model, panel set, git skills, and panel communication design
are real thought that should remain readable next to the new code
while the rebuild finds its shape. Git's rename tracking preserves
history, so `git log -- legacy/` still works.

The Flutter rebuild lives at the repo root alongside a Go sidecar
(the architecture claudian was heading toward, which folds into
clide as a core component rather than a separate plugin project).
Bootstrap of the new shape lands in subsequent commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 20:30:51 +02:00

38 lines
926 B
Python

"""Snapshot tests for Clide UI."""
from clide.app import ClideApp
def test_initial_layout(snap_compare) -> None:
"""Test the initial application layout renders correctly."""
app = ClideApp(test_mode=True)
assert snap_compare(app, terminal_size=(120, 40))
def test_layout_without_right_panel(snap_compare) -> None:
"""Test layout with right panel hidden."""
async def hide_right_panel(pilot):
await pilot.press("f2")
app = ClideApp(test_mode=True)
assert snap_compare(
app,
terminal_size=(120, 40),
run_before=hide_right_panel,
)
def test_layout_without_left_panel(snap_compare) -> None:
"""Test layout with left panel hidden."""
async def hide_left_panel(pilot):
await pilot.press("f1")
app = ClideApp(test_mode=True)
assert snap_compare(
app,
terminal_size=(120, 40),
run_before=hide_left_panel,
)