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
+23 -16
View File
@@ -1,5 +1,5 @@
# VHS E2E test for lazygitclj - Stash operations
# Tests stash functionality (s for quick stash, S for stash menu)
# Tests stash push, apply, pop, drop
Output test/e2e/output/stash-operations.gif
Output test/e2e/output/stash-operations.ascii
@@ -12,41 +12,48 @@ Set Width 1000
Set Height 600
Set Framerate 10
# Setup test repo with changes and run lazygitclj
# Setup test repo and run lazygitclj
Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash && cd /tmp/lazygitclj-e2e-stash && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
Enter
Sleep 2s
# Should be on Files panel with staged and unstaged files
# Quick stash all changes with 's'
# Should see modified files in Files panel
# Stash all changes with 's'
Type "s"
Sleep 1s
# Files panel should now be clean, check stash panel
Type "4"
# Working tree should now be clean
# Switch to stash panel (5)
Type "5"
Sleep 500ms
# Should see one stash entry
# Navigate to stash and apply it with space
# Should see 1 stash entry
# Apply stash with space
Type " "
Sleep 1s
# Go back to files panel - should see changes restored
Type "1"
# Pop stash with g (should remove it)
Type "g"
Sleep 1s
# Create another stash by going back to files
Type "2"
Sleep 500ms
# Stash again with 's'
# Make changes visible, stash again
Type "r"
Sleep 500ms
Type "s"
Sleep 1s
# Go to stash panel
Type "4"
# Go to stash panel and drop
Type "5"
Sleep 500ms
# Pop the stash with 'g' (apply and remove)
Type "g"
Type "d"
Sleep 1s
# Stash should be dropped
# Quit
Type "q"
Sleep 1s