diff --git a/playground/e2e/direction.spec.ts b/playground/e2e/direction.spec.ts index 3907a54..912bbd7 100644 --- a/playground/e2e/direction.spec.ts +++ b/playground/e2e/direction.spec.ts @@ -38,7 +38,7 @@ test.describe('Direction tests', () => { await openDrawer(page) await page.hover('[vaul-drawer]') await page.mouse.down() - await page.mouse.move(-600, 0) + await page.mouse.move(200, 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(600, 0) + await page.mouse.move(800, 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, -600) + await page.mouse.move(0, -200) await page.mouse.up() await page.waitForTimeout(ANIMATION_DURATION) await expect(page.getByTestId('content')).not.toBeVisible() diff --git a/playground/playwright.config.ts b/playground/playwright.config.ts index f610f2a..fb6a563 100644 --- a/playground/playwright.config.ts +++ b/playground/playwright.config.ts @@ -48,14 +48,12 @@ export default defineConfig({ name: 'chromium', use: { ...devices['Desktop Chrome'], - viewport: { width: 1280, height: 720 }, }, }, { name: 'firefox', use: { ...devices['Desktop Firefox'], - viewport: { width: 1280, height: 720 }, }, },