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:
David Rousset 2021-09-07 11:07:05 +02:00 committed by GitHub
parent f768ac03ee
commit 9626b111bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: [