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