mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
docs(class-testconfig.md): remove trailing devices reference (#14867)
This commit is contained in:
parent
e640f553b5
commit
9d9b5d13be
@ -138,7 +138,7 @@ module.exports = config;
|
||||
|
||||
```js tab=js-ts
|
||||
// playwright.config.ts
|
||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
globalSetup: './global-setup',
|
||||
@ -167,7 +167,7 @@ module.exports = config;
|
||||
|
||||
```js tab=js-ts
|
||||
// playwright.config.ts
|
||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
globalTeardown: './global-teardown',
|
||||
@ -276,7 +276,7 @@ module.exports = config;
|
||||
|
||||
```js tab=js-ts
|
||||
// playwright.config.ts
|
||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
outputDir: './test-results',
|
||||
@ -508,7 +508,7 @@ module.exports = config;
|
||||
|
||||
```js tab=js-ts
|
||||
// playwright.config.ts
|
||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
testIgnore: '**/test-assets/**',
|
||||
@ -537,7 +537,7 @@ module.exports = config;
|
||||
|
||||
```js tab=js-ts
|
||||
// playwright.config.ts
|
||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
testMatch: /.*\.e2e\.js/,
|
||||
|
14
packages/playwright-test/types/test.d.ts
vendored
14
packages/playwright-test/types/test.d.ts
vendored
@ -584,7 +584,7 @@ interface TestConfig {
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
*
|
||||
* const config: PlaywrightTestConfig = {
|
||||
* globalSetup: './global-setup',
|
||||
@ -603,7 +603,7 @@ interface TestConfig {
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
*
|
||||
* const config: PlaywrightTestConfig = {
|
||||
* globalTeardown: './global-teardown',
|
||||
@ -684,7 +684,7 @@ interface TestConfig {
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
*
|
||||
* const config: PlaywrightTestConfig = {
|
||||
* outputDir: './test-results',
|
||||
@ -829,7 +829,7 @@ interface TestConfig {
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
*
|
||||
* const config: PlaywrightTestConfig = {
|
||||
* testIgnore: '**\/test-assets/**',
|
||||
@ -848,7 +848,7 @@ interface TestConfig {
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
*
|
||||
* const config: PlaywrightTestConfig = {
|
||||
* testMatch: /.*\.e2e\.js/,
|
||||
@ -1018,7 +1018,7 @@ export interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
*
|
||||
* const config: PlaywrightTestConfig = {
|
||||
* globalSetup: './global-setup',
|
||||
@ -1036,7 +1036,7 @@ export interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
|
||||
*
|
||||
* ```js
|
||||
* // playwright.config.ts
|
||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
||||
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||
*
|
||||
* const config: PlaywrightTestConfig = {
|
||||
* globalTeardown: './global-teardown',
|
||||
|
Loading…
Reference in New Issue
Block a user