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:
@@ -0,0 +1,52 @@
|
||||
# VHS E2E test for lazygitclj - Cursor navigation
|
||||
# Tests </> for top/bottom and PgUp/PgDn for page scroll
|
||||
|
||||
Output test/e2e/output/cursor-navigation.gif
|
||||
Output test/e2e/output/cursor-navigation.ascii
|
||||
|
||||
Require bb
|
||||
|
||||
Set Shell "bash"
|
||||
Set FontSize 14
|
||||
Set Width 1000
|
||||
Set Height 600
|
||||
Set Framerate 10
|
||||
|
||||
# Setup test repo with many files
|
||||
Type "REPO=/tmp/lazygitclj-e2e-cursor && rm -rf $REPO && mkdir -p $REPO && cd $REPO && git init -b main && git config user.email 'test@test.com' && git config user.name 'Test' && for i in $(seq 1 20); do echo \"content $i\" > file$i.txt; done && git add . && git commit -m 'Initial' && for i in $(seq 1 20); do echo \"modified $i\" >> file$i.txt; done && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
|
||||
Enter
|
||||
Sleep 3s
|
||||
|
||||
# Navigate down a few times
|
||||
Type "j"
|
||||
Sleep 200ms
|
||||
Type "j"
|
||||
Sleep 200ms
|
||||
Type "j"
|
||||
Sleep 200ms
|
||||
Type "j"
|
||||
Sleep 500ms
|
||||
|
||||
# Go to top with <
|
||||
Type "<"
|
||||
Sleep 500ms
|
||||
|
||||
# Go to bottom with >
|
||||
Type ">"
|
||||
Sleep 500ms
|
||||
|
||||
# Page up
|
||||
PageUp
|
||||
Sleep 500ms
|
||||
|
||||
# Page down
|
||||
PageDown
|
||||
Sleep 500ms
|
||||
|
||||
# Go to top again
|
||||
Type "<"
|
||||
Sleep 500ms
|
||||
|
||||
# Quit
|
||||
Type "q"
|
||||
Sleep 1s
|
||||
Reference in New Issue
Block a user