summaryrefslogtreecommitdiff
path: root/scripts/tui-golden.py
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-21 23:09:57 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-21 23:09:57 +0200
commit8350815a8c6987b288551848eda1c678739c8d4a (patch)
tree04ef3c56e10fa8b06768465910d10a57779e8731 /scripts/tui-golden.py
parentbf9012dad7ef34bbbfb073bc0f37b0161f0496f3 (diff)
downloadbokf-0.1.62.tar.gz
bokf-0.1.62.zip
invoices: text rows, duplicate and payment link (schema v12); smtp address checksv0.1.62
Diffstat (limited to 'scripts/tui-golden.py')
-rwxr-xr-xscripts/tui-golden.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/scripts/tui-golden.py b/scripts/tui-golden.py
index 6af4d4f..b339f2d 100755
--- a/scripts/tui-golden.py
+++ b/scripts/tui-golden.py
@@ -268,6 +268,52 @@ SCENARIOS = [
],
},
{
+ "name": "invoice-duplicate",
+ "screen": "invoices",
+ "steps": [
+ {
+ "keys": ["enter"],
+ "expect": ["Att betala", "12 500,00"],
+ },
+ {
+ "keys": ["u"],
+ "expect": ["Ny faktura", "Testkund AB",
+ "Konsulttjänster"],
+ },
+ {
+ "keys": ["esc"],
+ "expect": ["Faktura", "Att betala"],
+ },
+ ],
+ },
+ {
+ "name": "invoice-pay",
+ "screen": "invoices",
+ "steps": [
+ {
+ "keys": ["enter"],
+ "expect": ["Att betala", "12 500,00"],
+ },
+ {
+ "keys": ["b"],
+ "expect": ["Nytt verifikat", "1930", "1510",
+ "Betalning faktura"],
+ },
+ {
+ "keys": ["f9"],
+ "expect": ["Bokfört"],
+ },
+ {
+ "keys": ["enter"],
+ "expect": ["kvitterad"],
+ },
+ {
+ "keys": ["enter"],
+ "expect": ["betald", "Betalningsverifikat"],
+ },
+ ],
+ },
+ {
"name": "employees",
"screen": "employees",
"expect": ["Anställda", "Testanställd", "Ny anställd"],