init
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# VHS E2E test for lazygitclj - Stash menu options
|
||||
# Tests stash options menu (S key opens menu)
|
||||
|
||||
Output test/e2e/output/stash-menu.gif
|
||||
Output test/e2e/output/stash-menu.ascii
|
||||
|
||||
Require bb
|
||||
|
||||
Set Shell "bash"
|
||||
Set FontSize 14
|
||||
Set Width 1000
|
||||
Set Height 600
|
||||
Set Framerate 10
|
||||
|
||||
# Setup test repo with changes and run lazygitclj
|
||||
Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-stash-menu && cd /tmp/lazygitclj-e2e-stash-menu && bb --config /home/ajet/repos/lazygitclj/bb.edn start"
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Open stash options menu with 'S'
|
||||
Type "S"
|
||||
Sleep 1s
|
||||
|
||||
# Menu should be visible showing options:
|
||||
# a - Stash all changes
|
||||
# i - Stash all and keep index
|
||||
# U - Stash including untracked
|
||||
# s - Stash staged only
|
||||
# u - Stash unstaged only
|
||||
|
||||
# Cancel with escape first
|
||||
Escape
|
||||
Sleep 500ms
|
||||
|
||||
# Open menu again
|
||||
Type "S"
|
||||
Sleep 500ms
|
||||
|
||||
# Stash all with 'a'
|
||||
Type "a"
|
||||
Sleep 1s
|
||||
|
||||
# Files should be clean now
|
||||
# Check stash panel
|
||||
Type "4"
|
||||
Sleep 500ms
|
||||
|
||||
# Quit
|
||||
Type "q"
|
||||
Sleep 1s
|
||||
Reference in New Issue
Block a user