Skip to content

Commit

Permalink
test: fix failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Jun 16, 2024
1 parent 7ab6949 commit 3875d19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions playground/e2e/direction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 3875d19

Please sign in to comment.