Reorg trade test

This commit is contained in:
Matthias 2024-04-08 07:33:42 +02:00
parent faf03f7738
commit 6463fea8d8

View File

@ -26,13 +26,15 @@ function tradeMocks(page) {
});
}
test('Trade', async ({ page }) => {
test.describe('Trade', () => {
test.beforeEach(async ({ page }) => {
await defaultMocks(page);
await setLoginInfo(page);
await tradeMocks(page);
await page.goto('/trade');
});
test('Trade page', async ({ page }) => {
// Wait for network requests
// await page.waitForResponse('**/ping');
await page.waitForResponse('**/status');
@ -140,3 +142,4 @@ test('Trade', async ({ page }) => {
await expect(chartHeader).toBeInViewport();
}
});
});