From e072e69407596ac945b222ebefe409db5cb5174a Mon Sep 17 00:00:00 2001 From: NikxDa Date: Wed, 10 Jan 2024 03:28:39 +0100 Subject: [PATCH] Fix remaining test --- .../src/components/transactions/TransactionsTable.test.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx b/packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx index 2897ddacf14..4b93eca9950 100644 --- a/packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx +++ b/packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx @@ -794,6 +794,7 @@ describe('Transactions', () => { expect(getTransactions().length).toBe(5); await userEvent.click(splitButton); await waitForAutocomplete(); + expect(getTransactions().length).toBe(6); expect(getTransactions()[0].is_parent).toBe(true); expect(getTransactions()[1].is_child).toBe(true); @@ -816,7 +817,7 @@ describe('Transactions', () => { // Add another split transaction and make sure everything is // updated properly - await userEvent.click(toolbar.querySelector('button')); + await userEvent.click(toolbar.querySelector('[data-testid="add-split-button"]')); expect(getTransactions().length).toBe(7); expect(getTransactions()[2].amount).toBe(0); expectErrorToExist(getTransactions().slice(0, 3));