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.
This commit is contained in:
Chris Lemaire 2023-01-21 23:24:43 +01:00
parent 9443fe0e0d
commit 97f15eac03

View File

@ -97,5 +97,5 @@ hledgerWebTest = do
yit "serves a journal page showing forecasted transactions" $ do yit "serves a journal page showing forecasted transactions" $ do
get JournalR get JournalR
statusIs 200 statusIs 200
bodyContains "id=\"transaction-0-1\"" -- 0 indicates a fileless (forecasted) txn bodyContains "id=\"transaction-2-1\""
bodyContains "id=\"transaction-0-2\"" -- etc. bodyContains "id=\"transaction-2-2\""