Skip to content

Commit 2f78c86

Browse files
committed
tests: ensure clean state before base test.
1 parent 3e4fc1f commit 2f78c86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontends/web/tests/base.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import { test } from './helpers/fixtures';
1818
import { ServeWallet } from './helpers/servewallet';
1919
import { expect } from '@playwright/test';
20+
import { deleteConfigFile, deleteAccountsFile } from './helpers/fs';
2021

2122
let servewallet: ServeWallet;
2223

@@ -35,6 +36,11 @@ test('App main page loads', async ({ page, host, frontendPort, servewalletPort }
3536
});
3637
});
3738

39+
test.beforeAll(() => {
40+
deleteConfigFile();
41+
deleteAccountsFile();
42+
});
43+
3844
test.afterAll(() => {
3945
servewallet.stop();
4046
});

0 commit comments

Comments
 (0)