Skip to content

Commit

Permalink
Update ynab5 demo budget so that budget import tests pass
Browse files Browse the repository at this point in the history
The data has changed so there is a split transaction which has a transfer of 50
from checking to savings.

This adds a matching transfer from savings to checking account.
It leaves the checking account with 600 dollars, and savings with 250 which the tests have been updated to reflect.
  • Loading branch information
Marethyu1 committed Oct 29, 2023
1 parent 575cf15 commit 5dd2eaa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions packages/desktop-client/e2e/data/ynab5-demo-budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,26 @@
"import_payee_name_original": null,
"debt_transaction_type": null,
"deleted": false
},
{
"id": "024494a1-f1e0-4667-9fc0-91e4a4262193",
"date": "2023-09-04",
"amount": 50000,
"memo": "split bart b",
"cleared": "cleared",
"approved": true,
"flag_color": null,
"account_id": "125f339b-2a63-481e-84c0-f04d898905d2",
"payee_id": "",
"category_id": null,
"transfer_account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
"transfer_transaction_id": "213526fc-ba49-4790-8a96-cc2a50182728",
"matched_transaction_id": "",
"import_id": null,
"import_payee_name": null,
"import_payee_name_original": null,
"debt_transaction_type": null,
"deleted": false
}
],
"subtransactions": [
Expand Down
4 changes: 2 additions & 2 deletions packages/desktop-client/e2e/onboarding.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ test.describe('Onboarding', () => {
await expect(budgetPage.budgetTable).toBeVisible({ timeout: 30000 });

const accountPage = await navigation.goToAccountPage('Checking');
await expect(accountPage.accountBalance).toHaveText('700.00');
await expect(accountPage.accountBalance).toHaveText('600.00');

await navigation.goToAccountPage('Saving');
await expect(accountPage.accountBalance).toHaveText('200.00');
await expect(accountPage.accountBalance).toHaveText('250.00');
});

test('creates a new budget file by importing Actual budget', async () => {
Expand Down

0 comments on commit 5dd2eaa

Please sign in to comment.