summaryrefslogtreecommitdiff
path: root/scripts/tui-golden.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tui-golden.py')
-rwxr-xr-xscripts/tui-golden.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/tui-golden.py b/scripts/tui-golden.py
index 864210c..71e1273 100755
--- a/scripts/tui-golden.py
+++ b/scripts/tui-golden.py
@@ -589,6 +589,35 @@ SCENARIOS = [
],
},
{
+ # 'g' + a letter searches the list rows; the screen's own keys
+ # ('s' = sortera) are text while the prompt is open.
+ "name": "voucher-goto-search",
+ "screen": "vouchers",
+ "expect": ["sorterade på nummer, stigande", "F1"],
+ "steps": [
+ {
+ "keys": ["g"],
+ "expect": ["Gå till rad eller sök (bokstav):"],
+ },
+ {
+ "keys": ["s"],
+ "expect": ["Sök: s", "sorterade på nummer, stigande"],
+ },
+ {
+ "keys": ["backspace", "zzz"],
+ "expect": ["Sök: zzz", "(ingen träff)"],
+ },
+ {
+ "keys": ["esc", "g", "GOLDEN VER"],
+ "expect": ["Sök: GOLDEN VER", "upp/ned = fler träffar"],
+ },
+ {
+ "keys": ["enter", "enter"],
+ "expect": ["Verifikat A1", "Golden verifikat"],
+ },
+ ],
+ },
+ {
# Backspace in a freshly opened field edits the value; the next
# key must not replace everything.
"name": "form-edit-backspace",