# 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 using setup script
Type "./test/e2e/setup-cursor-test.sh && 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
