From 8350815a8c6987b288551848eda1c678739c8d4a Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Mon, 21 Sep 2026 23:09:57 +0200 Subject: invoices: text rows, duplicate and payment link (schema v12); smtp address checks --- scripts/tui-golden.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'scripts/tui-golden.py') 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 @@ -267,6 +267,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", -- cgit v1.3