Skip to content

Commit

Permalink
docs: add missing imports (microsoft#29014)
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn committed Jan 17, 2024
1 parent 1db1871 commit 0fa8514
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/emulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down Expand Up @@ -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: [
Expand Down

0 comments on commit 0fa8514

Please sign in to comment.