From 8fe90d1783d657a628b1e8faa7d100a5d7e17fbd Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 6 Sep 2026 14:39:25 +0200 Subject: [PATCH] fix(test): the card is labelled Total trip spend --- client/src/components/Budget/CostsPanel.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Budget/CostsPanel.test.tsx b/client/src/components/Budget/CostsPanel.test.tsx index adda0edaf..f85fd752a 100644 --- a/client/src/components/Budget/CostsPanel.test.tsx +++ b/client/src/components/Budget/CostsPanel.test.tsx @@ -312,7 +312,7 @@ describe('CostsPanel — settlements in the ledger', () => { // "Your share" is the first of the two bold figures in the Total spend card's // footer; the second is "You paid". 60 from the paid expense only — the 40 // nobody has paid for is not a share, though it still counts as spend. - const card = screen.getByText('Total spend').closest('div[style*="border-radius: 22"]')! + const card = screen.getByText('Total trip spend').closest('div[style*="border-radius: 22"]')! const figures = [...card.querySelectorAll('b')].map(b => b.textContent ?? '') expect(figures[0]).toContain('60') expect(figures[0]).not.toContain('100')