diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/tui-golden.py | 46 |
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"], |
