From 3875d19af204b54a77569250390888fd78ac62d0 Mon Sep 17 00:00:00 2001 From: zernonia Date: Sun, 16 Jun 2024 22:06:55 +0800 Subject: [PATCH] test: fix failed test --- playground/e2e/direction.spec.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/playground/e2e/direction.spec.ts b/playground/e2e/direction.spec.ts index 4ead1f1..3907a54 100644 --- a/playground/e2e/direction.spec.ts +++ b/playground/e2e/direction.spec.ts @@ -12,7 +12,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(0, 800) + await page.mouse.move(0, 600) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).not.toBeVisible() @@ -22,7 +22,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(0, -800) + await page.mouse.move(0, -600) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).toBeVisible() @@ -38,7 +38,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(-800, 0) + await page.mouse.move(-600, 0) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).not.toBeVisible() @@ -48,7 +48,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(800, 0) + await page.mouse.move(600, 0) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).toBeVisible() @@ -64,7 +64,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(1600, 0) + await page.mouse.move(1200, 0) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).not.toBeVisible() @@ -74,7 +74,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(-1600, 0) + await page.mouse.move(-1200, 0) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).toBeVisible() @@ -90,7 +90,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(0, -800) + await page.mouse.move(0, -600) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).not.toBeVisible() @@ -100,7 +100,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(0, 800) + await page.mouse.move(0, 600) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).toBeVisible()