diff --git a/docs/src/emulation.md b/docs/src/emulation.md index 65c81612f8bba..a29e6cef7da8a 100644 --- a/docs/src/emulation.md +++ b/docs/src/emulation.md @@ -101,7 +101,8 @@ Playwright can emulate various devices by specifying `setDeviceScaleFactor`, `se The viewport is included in the device but you can override it for some tests with [`method: Page.setViewportSize`]. ```js tab=js-test title="playwright.config.ts" -import { defineConfig } from '@playwright/test'; +import { defineConfig, devices } from '@playwright/test'; + export default defineConfig({ projects: [ { @@ -245,7 +246,7 @@ await using var context = await browser.NewContextAsync(new() Whether the meta viewport tag is taken into account and touch events are enabled. ```js title="playwright.config.ts" -import { defineConfig } from '@playwright/test'; +import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ projects: [