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:
@@ -1,5 +1,5 @@
|
||||
# VHS E2E test for lazygitclj - Branch operations
|
||||
# Tests branch create, delete, rename, merge, checkout
|
||||
# Tests branch create, checkout, delete, tab switching
|
||||
|
||||
Output test/e2e/output/branch-operations.gif
|
||||
Output test/e2e/output/branch-operations.ascii
|
||||
@@ -13,15 +13,15 @@ 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"
|
||||
Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-branch && cd /tmp/lazygitclj-e2e-branch && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# First, clean up working tree by stashing
|
||||
Type "s"
|
||||
# First, stage all files to clean working tree
|
||||
Type "a"
|
||||
Sleep 500ms
|
||||
|
||||
# Switch to branches panel
|
||||
# Switch to branches panel (3)
|
||||
Type "3"
|
||||
Sleep 500ms
|
||||
|
||||
@@ -34,34 +34,37 @@ Enter
|
||||
Sleep 1s
|
||||
|
||||
# Should have created and switched to test-branch
|
||||
# Go back to main - select main first
|
||||
# Navigate to main branch
|
||||
Type "j"
|
||||
Sleep 300ms
|
||||
Type "j"
|
||||
Sleep 300ms
|
||||
|
||||
# Enter to checkout main
|
||||
Enter
|
||||
# Checkout main with space
|
||||
Type " "
|
||||
Sleep 1s
|
||||
|
||||
# Navigate to test-branch and delete it with 'd'
|
||||
Type "k"
|
||||
Sleep 300ms
|
||||
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
|
||||
# Switch to tags tab with ]
|
||||
Type "]"
|
||||
Sleep 500ms
|
||||
Type "]"
|
||||
Sleep 500ms
|
||||
|
||||
# Merge with 'M'
|
||||
Type "M"
|
||||
Sleep 1s
|
||||
|
||||
# Should show merge message
|
||||
# Switch back to local with [
|
||||
Type "["
|
||||
Sleep 500ms
|
||||
Type "["
|
||||
Sleep 500ms
|
||||
|
||||
# Quit
|
||||
Type "q"
|
||||
|
||||
Reference in New Issue
Block a user