Add VHS e2e tests and output recordings

Includes test tapes for navigation, branch operations, stash operations,
help panel, commits, and cursor navigation. Resolved stash conflicts by
keeping simpler test versions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-22 11:01:11 -05:00
parent 99a3970f17
commit 2657545018
77 changed files with 22900 additions and 112 deletions
+34 -28
View File
@@ -1,5 +1,5 @@
# VHS E2E test for lazygitclj - Basic navigation
# Tests panel switching and cursor movement (like lazygit)
# VHS E2E test for lazygitclj - Navigation and panel switching
# Tests h/l panel navigation, number keys, and cursor movement
Output test/e2e/output/navigation.gif
Output test/e2e/output/navigation.ascii
@@ -17,8 +17,8 @@ Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-nav && cd /tmp/lazygitcl
Enter
Sleep 2s
# Should start on Files panel (panel 1)
# Navigate down with j (vim style like lazygit)
# Should start on Files panel (panel 2)
# Navigate down with j (vim style)
Type "j"
Sleep 500ms
Type "j"
@@ -28,45 +28,51 @@ Sleep 500ms
Type "k"
Sleep 500ms
# Switch to Commits panel with Tab
Tab
Sleep 500ms
# Navigate commits
Type "j"
Sleep 500ms
Type "k"
Sleep 500ms
# Switch to Branches panel with Tab
Tab
# Switch to Branches panel with l
Type "l"
Sleep 500ms
# Navigate branches
Type "j"
Sleep 500ms
# Switch back to Files using number key (like lazygit)
Type "1"
# Switch to Commits panel with l
Type "l"
Sleep 500ms
# Switch to Commits with number key
Type "2"
# Switch to Stash panel with l
Type "l"
Sleep 500ms
# Switch to Branches with number key
# Go back to Files with h
Type "h"
Sleep 300ms
Type "h"
Sleep 300ms
Type "h"
Sleep 500ms
# Switch to Branches using number key (3)
Type "3"
Sleep 500ms
# Test arrow keys too
Up
Sleep 300ms
# Switch to Commits using number key (4)
Type "4"
Sleep 500ms
# Switch to Stash using number key (5)
Type "5"
Sleep 500ms
# Go back to Files (2)
Type "2"
Sleep 500ms
# Test arrow keys
Down
Sleep 300ms
# Refresh with r
Type "r"
Sleep 500ms
Up
Sleep 300ms
# Quit with q
Type "q"