Files
lazygitclj/test/e2e/cursor-navigation.tape
2026-01-22 22:28:38 -05:00

58 lines
901 B
VHS

# 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 "cd /home/ajet/repos/lazygitclj && bb e2e:setup-cursor && cd /tmp/lazygitclj-e2e-cursor && 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
# Cleanup test repo
Type "rm -rf /tmp/lazygitclj-e2e-cursor"
Enter
Sleep 500ms