mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-21 23:53:52 +00:00
chore: cleanup trade test
Some checks failed
Some checks failed
This commit is contained in:
parent
159a95d4e3
commit
6802496cb3
|
@ -100,7 +100,7 @@ test.describe('Trade', () => {
|
||||||
|
|
||||||
await expect(page.getByText('Config reloaded successfully.')).toBeInViewport();
|
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([
|
await Promise.all([
|
||||||
page.goto('/trade'),
|
page.goto('/trade'),
|
||||||
// Wait for network requests
|
// Wait for network requests
|
||||||
|
@ -138,27 +138,7 @@ test.describe('Trade', () => {
|
||||||
await page.mouse.up();
|
await page.mouse.up();
|
||||||
await expect(multiPane).toBeInViewport();
|
await expect(multiPane).toBeInViewport();
|
||||||
// Multipane wasn't moved.
|
// Multipane wasn't moved.
|
||||||
// if (browserName !== 'webkit') {
|
|
||||||
await expect(multiPanebb).toEqual(await multiPane.boundingBox());
|
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();
|
await expect(chartHeader).toBeInViewport();
|
||||||
// ChartHeader was moved down
|
// ChartHeader was moved down
|
||||||
|
|
Loading…
Reference in New Issue
Block a user