mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 02:11:57 +00:00
Attempt to improve test resilience
This commit is contained in:
parent
2f455af8eb
commit
0fca97b267
|
@ -32,18 +32,20 @@ test.describe('Trade', () => {
|
|||
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');
|
||||
await page.waitForResponse('**/profit');
|
||||
await page.waitForResponse('**/balance');
|
||||
// await page.waitForResponse('**/trades');
|
||||
await page.waitForResponse('**/whitelist');
|
||||
await page.waitForResponse('**/blacklist');
|
||||
await page.waitForResponse('**/locks');
|
||||
await Promise.all([
|
||||
await page.goto('/trade'),
|
||||
// Wait for network requests
|
||||
// await page.waitForResponse('**/ping'),
|
||||
await page.waitForResponse('**/status'),
|
||||
await page.waitForResponse('**/profit'),
|
||||
await page.waitForResponse('**/balance'),
|
||||
// await page.waitForResponse('**/trades'),
|
||||
await page.waitForResponse('**/whitelist'),
|
||||
await page.waitForResponse('**/blacklist'),
|
||||
await page.waitForResponse('**/locks'),
|
||||
]);
|
||||
|
||||
// // Check visibility of elements
|
||||
await expect(page.locator('.drag-header', { hasText: 'Multi Pane' })).toBeInViewport();
|
||||
|
|
Loading…
Reference in New Issue
Block a user