Files
2026-01-22 22:28:38 -05:00

52 lines
1.0 KiB
VHS

# VHS E2E test for lazygitclj - Commits panel tabs
# Tests tab switching between Commits and Reflog ([ and ] keys)
Output test/e2e/output/commits-tabs.gif
Output test/e2e/output/commits-tabs.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 "cd /home/ajet/repos/lazygitclj && bb e2e:setup /tmp/lazygitclj-e2e-commits-tabs && cd /tmp/lazygitclj-e2e-commits-tabs && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
Enter
Sleep 2s
# Switch to commits panel with '2'
Type "2"
Sleep 500ms
# Should show [Commits] | Reflog tab indicator
# Switch to Reflog tab with ']'
Type "]"
Sleep 500ms
# Should now show Commits | [Reflog] tab indicator
# Navigate reflog entries
Type "j"
Sleep 500ms
Type "k"
Sleep 500ms
# Switch back to Commits with '['
Type "["
Sleep 500ms
# Should be back on Commits tab
Type "j"
Sleep 500ms
# Quit
Type "q"
Sleep 1s
# Cleanup test repo
Type "rm -rf /tmp/lazygitclj-e2e-commits-tabs"
Enter
Sleep 500ms