Add VHS e2e tests and output recordings
Includes test tapes for navigation, branch operations, stash operations, help panel, commits, and cursor navigation. Resolved stash conflicts by keeping simpler test versions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+10
-22
@@ -1,5 +1,5 @@
|
||||
# VHS E2E test for lazygitclj - Help panel
|
||||
# Tests help display (? key shows keybindings)
|
||||
# Tests opening and closing help with ?
|
||||
|
||||
Output test/e2e/output/help-panel.gif
|
||||
Output test/e2e/output/help-panel.ascii
|
||||
@@ -17,34 +17,22 @@ Type "./test/e2e/setup-test-repo.sh /tmp/lazygitclj-e2e-help && cd /tmp/lazygitc
|
||||
Enter
|
||||
Sleep 2s
|
||||
|
||||
# Open help panel with '?'
|
||||
# Open help with ?
|
||||
Type "?"
|
||||
Sleep 2s
|
||||
|
||||
# Help panel should show keybindings for:
|
||||
# - Global keys (q, r, tab, 1-4, j/k, z/Z, p, P, ?, D)
|
||||
# - Files panel (space, a, c, d, s, S)
|
||||
# - Commits panel ([/], space, g, C, t, r, y)
|
||||
# - Branches panel ([/], enter, n, d, R, M, f)
|
||||
# - Stash panel (space, g, d, n)
|
||||
|
||||
# Close help with escape
|
||||
Escape
|
||||
Sleep 500ms
|
||||
|
||||
# Verify we're back to normal view
|
||||
Type "j"
|
||||
Sleep 500ms
|
||||
|
||||
# Open help again with '?'
|
||||
# Close help with ?
|
||||
Type "?"
|
||||
Sleep 1s
|
||||
|
||||
# Close with 'q' (also works)
|
||||
Type "q"
|
||||
Sleep 500ms
|
||||
# Open help again
|
||||
Type "?"
|
||||
Sleep 1s
|
||||
|
||||
# Close with q
|
||||
Type "q"
|
||||
Sleep 1s
|
||||
|
||||
# Should be back to normal view
|
||||
# Quit the app
|
||||
Type "q"
|
||||
Sleep 1s
|
||||
|
||||
Reference in New Issue
Block a user