Skip to content

Commit

Permalink
Fix remaining test
Browse files Browse the repository at this point in the history
  • Loading branch information
NikxDa committed Jan 10, 2024
1 parent b0f3851 commit e072e69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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));
Expand Down

0 comments on commit e072e69

Please sign in to comment.