From 6802496cb330f47912cbd33e41a393786ae39192 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 1 Oct 2024 07:12:01 +0200 Subject: [PATCH] chore: cleanup trade test --- e2e/trade.spec.ts | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/e2e/trade.spec.ts b/e2e/trade.spec.ts index 357e60b8..0a975450 100644 --- a/e2e/trade.spec.ts +++ b/e2e/trade.spec.ts @@ -100,7 +100,7 @@ test.describe('Trade', () => { await expect(page.getByText('Config reloaded successfully.')).toBeInViewport(); }); - test('Trade page - drag and drop', async ({ page, browserName }) => { + test('Trade page - drag and drop', async ({ page }) => { await Promise.all([ page.goto('/trade'), // Wait for network requests @@ -138,27 +138,7 @@ test.describe('Trade', () => { await page.mouse.up(); await expect(multiPane).toBeInViewport(); // Multipane wasn't moved. - // if (browserName !== 'webkit') { await expect(multiPanebb).toEqual(await multiPane.boundingBox()); - // } else { - // // allow offset of 2% - // const newMultiPaneBB = await multiPane.boundingBox(); - // if (newMultiPaneBB && multiPanebb) { - // const xDiff = Math.abs((newMultiPaneBB.x - multiPanebb.x) / multiPanebb.x); - // const yDiff = Math.abs((newMultiPaneBB.y - multiPanebb.y) / multiPanebb.y); - // const widthDiff = Math.abs( - // (newMultiPaneBB.width - multiPanebb.width) / multiPanebb.width, - // ); - // const heightDiff = Math.abs( - // (newMultiPaneBB.height - multiPanebb.height) / multiPanebb.height, - // ); - - // expect(xDiff).toBeLessThanOrEqual(0.02); - // expect(yDiff).toBeLessThanOrEqual(0.02); - // expect(widthDiff).toBeLessThanOrEqual(0.02); - // expect(heightDiff).toBeLessThanOrEqual(0.02); - // } - // } await expect(chartHeader).toBeInViewport(); // ChartHeader was moved down