From 97f15eac03486385c42f9549e84dfbf08ce0fe58 Mon Sep 17 00:00:00 2001 From: Chris Lemaire Date: Sat, 21 Jan 2023 23:24:43 +0100 Subject: [PATCH] Fix failing hledger-web test This test appeared to have failed after adding source positions to generated transactions. This is because the generated transaction id for web pages appears to be dependent on whether the transaction has an associated source file. Because it has one associated now, the id was updated to be 'transaction-2-1' for instance, instead of 'transaction-0-1' as it would have been before. The fix is to change the test. --- hledger-web/Hledger/Web/Test.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger-web/Hledger/Web/Test.hs b/hledger-web/Hledger/Web/Test.hs index 27e7cc67f..f99718d3f 100644 --- a/hledger-web/Hledger/Web/Test.hs +++ b/hledger-web/Hledger/Web/Test.hs @@ -97,5 +97,5 @@ hledgerWebTest = do yit "serves a journal page showing forecasted transactions" $ do get JournalR statusIs 200 - bodyContains "id=\"transaction-0-1\"" -- 0 indicates a fileless (forecasted) txn - bodyContains "id=\"transaction-0-2\"" -- etc. + bodyContains "id=\"transaction-2-1\"" + bodyContains "id=\"transaction-2-2\""