From 0fa85143a0053b00565d59db0501b592b1b340df Mon Sep 17 00:00:00 2001 From: inottn Date: Wed, 17 Jan 2024 15:11:55 +0800 Subject: [PATCH] docs: add missing imports (#29014) --- docs/src/emulation.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/emulation.md b/docs/src/emulation.md index 65c81612f8..a29e6cef7d 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: [