summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-22 12:43:52 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-22 12:43:52 +0200
commit07f5b140922d13519ad7a0d1dad67a9b403be9f1 (patch)
treeb6dde2ed6adb90c6423a5e585b693b908637e5ee /scripts
parent760cb25bd220718e37d8b95016f30cdf8ef6acdc (diff)
downloadbokf-07f5b140922d13519ad7a0d1dad67a9b403be9f1.tar.gz
bokf-07f5b140922d13519ad7a0d1dad67a9b403be9f1.zip
tui: kundutkast, <UTKAST>, explicit Spara och F2-åtgärder
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tui-golden.py59
1 files changed, 59 insertions, 0 deletions
diff --git a/scripts/tui-golden.py b/scripts/tui-golden.py
index b339f2d..4fee4df 100755
--- a/scripts/tui-golden.py
+++ b/scripts/tui-golden.py
@@ -60,6 +60,7 @@ KEYS = {
"ctrlenter-kitty": "\x1b[13;5u",
"f5": "\x1b[15~",
"f9": "\x1b[20~",
+ "f2": "\x1bOQ",
}
# {org_name} {org_nr} {fy_label} {fy_start} {fy_end} are substituted at run
@@ -258,6 +259,64 @@ SCENARIOS = [
"expect": ["Kunder", "Testkund AB"],
},
{
+ "name": "customer-draft",
+ "screen": "customers",
+ "expect": ["Kunder", "Testkund AB"],
+ "steps": [
+ {
+ "keys": ["ctrln"],
+ "expect": ["Ny kund", "<UTKAST>"],
+ },
+ {
+ "keys": ["enter", "Utkastkund", "enter"],
+ "expect": ["Ny kund", "<UTKAST>", "Utkastkund"],
+ },
+ {
+ "keys": ["esc"],
+ "expect": ["Kunder", "<UTKAST> Utkastkund"],
+ },
+ {
+ "keys": ["end", "up"],
+ "expect": ["<UTKAST> Utkastkund"],
+ },
+ {
+ "keys": ["f2"],
+ "expect": ["Åtgärder", "Öppna", "Radera utkast"],
+ },
+ {
+ "keys": ["down", "enter"],
+ "expect": ["Radera utkastet?"],
+ },
+ {
+ "keys": ["enter"],
+ "expect": ["Kunder", "Testkund AB"],
+ },
+ ],
+ },
+ {
+ "name": "customer-draft-save",
+ "screen": "customers",
+ "expect": ["Kunder", "Testkund AB"],
+ "steps": [
+ {
+ "keys": ["ctrln"],
+ "expect": ["Ny kund", "<UTKAST>"],
+ },
+ {
+ "keys": ["enter", "Sparad kund", "enter"],
+ "expect": ["Sparad kund", "<UTKAST>"],
+ },
+ {
+ "keys": ["f9"],
+ "expect": ["Sparat."],
+ },
+ {
+ "keys": ["enter"],
+ "expect": ["Kunder", "Sparad kund"],
+ },
+ ],
+ },
+ {
"name": "invoice-form",
"screen": "invoices",
"steps": [