Files
lazygitclj/test/e2e/stash-operations.tape
2026-01-21 17:49:39 -05:00

53 lines
1.0 KiB
VHS

# VHS E2E test for lazygitclj - Stash operations
# Tests stash functionality (s for quick stash, S for stash menu)
Output test/e2e/output/stash-operations.gif
Output test/e2e/output/stash-operations.ascii
Require bb
Set Shell "bash"
Set FontSize 14
Set Width 1000
Set Height 600
Set Framerate 10
# Setup test repo with changes 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'
Type "s"
Sleep 1s
# Files panel should now be clean, check stash panel
Type "4"
Sleep 500ms
# Should see one stash entry
# Navigate to stash and apply it with space
Type " "
Sleep 1s
# Go back to files panel - should see changes restored
Type "1"
Sleep 500ms
# Stash again with 's'
Type "s"
Sleep 1s
# Go to stash panel
Type "4"
Sleep 500ms
# Pop the stash with 'g' (apply and remove)
Type "g"
Sleep 1s
# Quit
Type "q"
Sleep 1s