init
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# 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 (clean working tree) and run lazygitclj
|
||||
Type "cd /tmp && rm -rf lazygitclj-e2e-branch && git clone /tmp/lazygitclj-e2e-nav lazygitclj-e2e-branch 2>/dev/null && cd lazygitclj-e2e-branch && git checkout main && 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
|
||||
Reference in New Issue
Block a user