-
-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/e2e: Add test for custom bindings
in the status bar. Makes sure that the modified bindings from a custom configuration file are read and applied to the UI.
- Loading branch information
Showing
4 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/tests/e2e/snapshots/zellij__tests__e2e__cases__status_bar_loads_custom_keybindings.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
source: src/tests/e2e/cases.rs | ||
assertion_line: 398 | ||
expression: last_snapshot | ||
--- | ||
Zellij (e2e-test) Tab #1 | ||
┌ Pane #1 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ | ||
│$ █ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
│ │ | ||
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ | ||
<F1> LOCK <F2> PANE <F3> TAB <F4> RESIZE <F5> MOVE <F6> SEARCH <F7> SESSION <F8> QUIT | ||
Tip: UNBOUND => open new pane. UNBOUND => navigate between panes. UNBOUND => increase/decrease pane size. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
# Configuration for zellij. | ||
|
||
# In order to troubleshoot your configuration try using the following command: | ||
# `zellij setup --check` | ||
# It should show current config locations and features that are enabled. | ||
|
||
keybinds: | ||
unbind: true | ||
normal: | ||
- action: [SwitchToMode: Locked,] | ||
key: [F: 1] | ||
- action: [SwitchToMode: Pane,] | ||
key: [F: 2] | ||
- action: [SwitchToMode: Tab,] | ||
key: [F: 3] | ||
- action: [SwitchToMode: Resize,] | ||
key: [F: 4] | ||
- action: [SwitchToMode: Move,] | ||
key: [F: 5] | ||
- action: [SwitchToMode: Scroll,] | ||
key: [F: 6] | ||
- action: [SwitchToMode: Session,] | ||
key: [F: 7] | ||
- action: [Quit,] | ||
key: [F: 8] |