Skip to content

Commit

Permalink
chore: remove viewport to pw
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Jun 16, 2024
1 parent 86159e3 commit f46f89b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions playground/e2e/direction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
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(600, 0)
await page.mouse.move(800, 0)
await page.mouse.up()
await page.waitForTimeout(ANIMATION_DURATION)
await expect(page.getByTestId('content')).toBeVisible()
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 0 additions & 2 deletions playground/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
},

Expand Down

0 comments on commit f46f89b

Please sign in to comment.