# VHS E2E test for lazygitclj - Branch operations # Tests branch create, delete, rename, merge, checkout Output test/e2e/output/branch-operations.gif Output test/e2e/output/branch-operations.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 "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch-ops && cd /tmp/lazygitclj-e2e-branch-ops && bb --config /home/ajet/repos/lazygitclj/bb.edn start" Enter Sleep 2s # First, clean up working tree by stashing Type "s" Sleep 500ms # Switch to branches panel Type "3" Sleep 500ms # Create new branch with 'n' Type "n" Sleep 500ms Set TypingSpeed 50ms Type "test-branch" Enter Sleep 1s # Should have created and switched to test-branch # Go back to main - select main first Type "j" Sleep 300ms Type "j" Sleep 300ms # Enter to checkout main Enter Sleep 1s # Navigate to test-branch and delete it with 'd' Type "k" Sleep 300ms Type "d" Sleep 1s # Branch should be deleted # Merge feature-branch into main # Navigate to feature-branch Type "k" Sleep 300ms # Merge with 'M' Type "M" Sleep 1s # Should show merge message # Quit Type "q" Sleep 1s