mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(test-runner): fix code snippets by using Playwright Test in import instead of Playwright (#8729)
Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
f768ac03ee
commit
9626b111bc
@ -162,7 +162,7 @@ Here is an example configuration that runs tests in "Pixel 4" and "iPhone 11" em
|
||||
```js js-flavor=js
|
||||
// playwright.config.js
|
||||
// @ts-check
|
||||
const { devices } = require('playwright');
|
||||
const { devices } = require('@playwright/test');
|
||||
|
||||
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
||||
const config = {
|
||||
@ -192,8 +192,7 @@ module.exports = config;
|
||||
|
||||
```js js-flavor=ts
|
||||
// playwright.config.ts
|
||||
import { PlaywrightTestConfig } from '@playwright/test';
|
||||
import { devices } from 'playwright';
|
||||
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
projects: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user