# VHS E2E test for lazygitclj - Help panel
# Tests opening and closing help with ?

Output test/e2e/output/help-panel.gif
Output test/e2e/output/help-panel.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-help && cd /tmp/lazygitclj-e2e-help && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
Enter
Sleep 2s

# Open help with ?
Type "?"
Sleep 2s

# Close help with ?
Type "?"
Sleep 1s

# Open help again
Type "?"
Sleep 1s

# Close with q
Type "q"
Sleep 1s

# Quit the app
Type "q"
Sleep 1s
