From ce526305bf22d79ca41b47713d2ab28437d5a242 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 13 Jul 2021 12:34:25 -1000 Subject: [PATCH] ;test: ui: transaction: add a test for up/down key (#1607) --- hledger-ui/test/uitest.org | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/hledger-ui/test/uitest.org b/hledger-ui/test/uitest.org index f4ddb0240..38e0dee67 100644 --- a/hledger-ui/test/uitest.org +++ b/hledger-ui/test/uitest.org @@ -73,12 +73,25 @@ which has nice screenshots, but might be less up to date. 2008-06-02 save as:ba:saving $-1 $1 2008-12-31 * pay off li:debts $-1 0 # <- selected -** / SPACE desc:pay # add another filter term, showing only transactions with "pay" in the description -──────── assets:bank:checking transactions matching bank desc:pay (1/1) ──────── - 2008-12-31 * pay off as:ba:checking $-1 $-1 +** / SPACE desc:a # add another filter term, showing only transactions with "a" in the description +───────── assets:bank:checking transactions matching bank desc:a (2/2) ───────── + 2008-06-02 save as:ba:saving $-1 $-1 + 2008-12-31 * pay off as:ba:checking $-1 $-2 # <- selected ** RIGHT # shows transaction detail -──── Transaction #5 (1 of 1 matching bank desc:pay in assets:bank:checking) ──── +───── Transaction #5 (2 of 2 matching bank desc:a in assets:bank:checking) ───── + 2008-12-31 * pay off + liabilities:debts $1 + assets:bank:checking $-1 + +** UP # shows previous matched transaction +───── Transaction #3 (1 of 2 matching bank desc:a in assets:bank:checking) ───── + 2008-06-02 save + assets:bank:saving $1 + assets:bank:checking $-1 + +** DOWN # shows next matched transaction +───── Transaction #5 (2 of 2 matching bank desc:a in assets:bank:checking) ───── 2008-12-31 * pay off liabilities:debts $1 assets:bank:checking $-1