init
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
# VHS E2E test for lazygitclj - Basic navigation
|
||||
# Tests panel switching and cursor movement (like lazygit)
|
||||
|
||||
Output test/e2e/output/navigation.gif
|
||||
Output test/e2e/output/navigation.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-nav && cd /tmp/lazygitclj-e2e-nav && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Should start on Files panel (panel 1)
|
||||
# Navigate down with j (vim style like lazygit)
|
||||
Type "j"
|
||||
Sleep 500ms
|
||||
Type "j"
|
||||
Sleep 500ms
|
||||
|
||||
# Navigate up with k
|
||||
Type "k"
|
||||
Sleep 500ms
|
||||
|
||||
# Switch to Commits panel with Tab
|
||||
Tab
|
||||
Sleep 500ms
|
||||
|
||||
# Navigate commits
|
||||
Type "j"
|
||||
Sleep 500ms
|
||||
Type "k"
|
||||
Sleep 500ms
|
||||
|
||||
# Switch to Branches panel with Tab
|
||||
Tab
|
||||
Sleep 500ms
|
||||
|
||||
# Navigate branches
|
||||
Type "j"
|
||||
Sleep 500ms
|
||||
|
||||
# Switch back to Files using number key (like lazygit)
|
||||
Type "1"
|
||||
Sleep 500ms
|
||||
|
||||
# Switch to Commits with number key
|
||||
Type "2"
|
||||
Sleep 500ms
|
||||
|
||||
# Switch to Branches with number key
|
||||
Type "3"
|
||||
Sleep 500ms
|
||||
|
||||
# Test arrow keys too
|
||||
Up
|
||||
Sleep 300ms
|
||||
Down
|
||||
Sleep 300ms
|
||||
|
||||
# Refresh with r
|
||||
Type "r"
|
||||
Sleep 500ms
|
||||
|
||||
# Quit with q
|
||||
Type "q"
|
||||
Sleep 1s
|
||||
Reference in New Issue
Block a user