Skip to content

Commit

Permalink
Use new Puppeteer KnownDevices export
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Feb 12, 2024
1 parent 397b8f5 commit eb29f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/navigation.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { devices } = require('puppeteer')
const { KnownDevices } = require('puppeteer')

const { goTo, getAttribute, isVisible } = require('../lib/puppeteer-helpers.js')

Expand All @@ -12,7 +12,7 @@ describe('Homepage', () => {
}

beforeAll(async () => {
await page.emulate(devices['iPhone 6'])
await page.emulate(KnownDevices['iPhone 6'])
})

beforeEach(async () => {
Expand Down

0 comments on commit eb29f4d

Please sign in to comment.