mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 01:58:40 -05:00
This reverts commit 5e12d4013a.
This commit is contained in:
committed by
GitHub
parent
25a4041958
commit
4485a631cd
@@ -1,5 +1,3 @@
|
||||
import { join } from 'path';
|
||||
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { ConfigurationPage } from './page-models/configuration-page';
|
||||
@@ -101,44 +99,4 @@ test.describe('Accounts', () => {
|
||||
await expect(transaction.account).toHaveText('Ally Savings');
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('Import Transactions', () => {
|
||||
test.beforeEach(async () => {
|
||||
accountPage = await navigation.createAccount({
|
||||
name: 'CSV import',
|
||||
offBudget: false,
|
||||
balance: 0,
|
||||
});
|
||||
});
|
||||
|
||||
test.afterEach(async () => {
|
||||
const close = await accountPage.clickCloseAccount();
|
||||
await close.selectTransferAccount('Vanguard 401k');
|
||||
await close.forceCloseAccount();
|
||||
});
|
||||
|
||||
async function importCsv(screenshot = false) {
|
||||
const fileChooserPromise = page.waitForEvent('filechooser');
|
||||
await accountPage.page.getByRole('button', { name: 'Import' }).click();
|
||||
|
||||
const fileChooser = await fileChooserPromise;
|
||||
await fileChooser.setFiles(join(__dirname, 'data/test.csv'));
|
||||
|
||||
if (screenshot) await expect(page).toMatchThemeScreenshots();
|
||||
|
||||
await accountPage.page
|
||||
.getByRole('button', { name: /Import \d+ transactions/ })
|
||||
.click();
|
||||
}
|
||||
|
||||
test('imports transactions from a CSV file', async () => {
|
||||
await importCsv(true);
|
||||
});
|
||||
|
||||
test('import csv file twice', async () => {
|
||||
await importCsv(false);
|
||||
await page.waitForTimeout(1000);
|
||||
await importCsv(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 170 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 164 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 167 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 150 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 150 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 149 KiB |
@@ -1,9 +0,0 @@
|
||||
Date,Payee,Notes,Category,Amount
|
||||
2024-08-02,Deposit,test 1,Income,1787.76
|
||||
2024-07-02,Deposit,test 2,Income,1787.76
|
||||
2024-06-02,Deposit,test 3,Income,1787.76
|
||||
2024-05-02,Deposit,test 4,Income,1787.76
|
||||
2024-04-02,Deposit,test 5,Income,1787.76
|
||||
2024-03-02,Deposit,test 6,Income,1787.76
|
||||
2024-02-02,Deposit,test 7,Income,1787.76
|
||||
2024-01-02,Starting Balance,test 8,Starting Balances,-330000
|
||||
|
@@ -12,8 +12,4 @@ export class CloseAccountModal {
|
||||
async closeAccount() {
|
||||
await this.page.getByRole('button', { name: 'Close account' }).click();
|
||||
}
|
||||
|
||||
async forceCloseAccount() {
|
||||
await this.page.getByLabel('Force close').click();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,7 +230,6 @@ export function CloseAccountModal({
|
||||
close();
|
||||
}}
|
||||
style={{ color: theme.errorText }}
|
||||
aria-label="Force close"
|
||||
>
|
||||
force close
|
||||
</Link>{' '}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
category: Maintenance
|
||||
authors: [UnderKoen]
|
||||
---
|
||||
|
||||
E2E tests for CSV import dialog
|
||||
Reference in New Issue
Block a user