45 lines
913 B
VHS
45 lines
913 B
VHS
# VHS E2E test for lazygitclj - Branch operations
|
|
# Tests branch checkout (like lazygit's Enter key on branches)
|
|
|
|
Output test/e2e/output/branches.gif
|
|
Output test/e2e/output/branches.ascii
|
|
|
|
Require bb
|
|
|
|
Set Shell "bash"
|
|
Set FontSize 14
|
|
Set Width 1000
|
|
Set Height 600
|
|
Set Framerate 10
|
|
|
|
# Setup test repo and run lazygitclj
|
|
Type "cd /home/ajet/repos/lazygitclj && bb e2e:setup /tmp/lazygitclj-e2e-branch && cd /tmp/lazygitclj-e2e-branch && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
|
|
Enter
|
|
Sleep 2s
|
|
|
|
# Switch to Branches panel with '3' (like lazygit number shortcuts)
|
|
Type "3"
|
|
Sleep 500ms
|
|
|
|
# Navigate to feature-branch
|
|
Type "j"
|
|
Sleep 500ms
|
|
|
|
# Checkout branch with Enter
|
|
Enter
|
|
Sleep 1s
|
|
|
|
# Should now be on feature-branch (shown in status bar)
|
|
# Switch back to Files panel to verify
|
|
Type "1"
|
|
Sleep 500ms
|
|
|
|
# Quit
|
|
Type "q"
|
|
Sleep 1s
|
|
|
|
# Cleanup test repo
|
|
Type "rm -rf /tmp/lazygitclj-e2e-branch"
|
|
Enter
|
|
Sleep 500ms
|