mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00: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
|
```js tab=js-ts
|
||||||
// playwright.config.ts
|
// playwright.config.ts
|
||||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
globalSetup: './global-setup',
|
globalSetup: './global-setup',
|
||||||
@ -167,7 +167,7 @@ module.exports = config;
|
|||||||
|
|
||||||
```js tab=js-ts
|
```js tab=js-ts
|
||||||
// playwright.config.ts
|
// playwright.config.ts
|
||||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
globalTeardown: './global-teardown',
|
globalTeardown: './global-teardown',
|
||||||
@ -276,7 +276,7 @@ module.exports = config;
|
|||||||
|
|
||||||
```js tab=js-ts
|
```js tab=js-ts
|
||||||
// playwright.config.ts
|
// playwright.config.ts
|
||||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
outputDir: './test-results',
|
outputDir: './test-results',
|
||||||
@ -508,7 +508,7 @@ module.exports = config;
|
|||||||
|
|
||||||
```js tab=js-ts
|
```js tab=js-ts
|
||||||
// playwright.config.ts
|
// playwright.config.ts
|
||||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testIgnore: '**/test-assets/**',
|
testIgnore: '**/test-assets/**',
|
||||||
@ -537,7 +537,7 @@ module.exports = config;
|
|||||||
|
|
||||||
```js tab=js-ts
|
```js tab=js-ts
|
||||||
// playwright.config.ts
|
// playwright.config.ts
|
||||||
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
testMatch: /.*\.e2e\.js/,
|
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
|
* ```js
|
||||||
* // playwright.config.ts
|
* // playwright.config.ts
|
||||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* const config: PlaywrightTestConfig = {
|
* const config: PlaywrightTestConfig = {
|
||||||
* globalSetup: './global-setup',
|
* globalSetup: './global-setup',
|
||||||
@ -603,7 +603,7 @@ interface TestConfig {
|
|||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* // playwright.config.ts
|
* // playwright.config.ts
|
||||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* const config: PlaywrightTestConfig = {
|
* const config: PlaywrightTestConfig = {
|
||||||
* globalTeardown: './global-teardown',
|
* globalTeardown: './global-teardown',
|
||||||
@ -684,7 +684,7 @@ interface TestConfig {
|
|||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* // playwright.config.ts
|
* // playwright.config.ts
|
||||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* const config: PlaywrightTestConfig = {
|
* const config: PlaywrightTestConfig = {
|
||||||
* outputDir: './test-results',
|
* outputDir: './test-results',
|
||||||
@ -829,7 +829,7 @@ interface TestConfig {
|
|||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* // playwright.config.ts
|
* // playwright.config.ts
|
||||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* const config: PlaywrightTestConfig = {
|
* const config: PlaywrightTestConfig = {
|
||||||
* testIgnore: '**\/test-assets/**',
|
* testIgnore: '**\/test-assets/**',
|
||||||
@ -848,7 +848,7 @@ interface TestConfig {
|
|||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* // playwright.config.ts
|
* // playwright.config.ts
|
||||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* const config: PlaywrightTestConfig = {
|
* const config: PlaywrightTestConfig = {
|
||||||
* testMatch: /.*\.e2e\.js/,
|
* testMatch: /.*\.e2e\.js/,
|
||||||
@ -1018,7 +1018,7 @@ export interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
|
|||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* // playwright.config.ts
|
* // playwright.config.ts
|
||||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* const config: PlaywrightTestConfig = {
|
* const config: PlaywrightTestConfig = {
|
||||||
* globalSetup: './global-setup',
|
* globalSetup: './global-setup',
|
||||||
@ -1036,7 +1036,7 @@ export interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
|
|||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* // playwright.config.ts
|
* // playwright.config.ts
|
||||||
* import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
* import { type PlaywrightTestConfig } from '@playwright/test';
|
||||||
*
|
*
|
||||||
* const config: PlaywrightTestConfig = {
|
* const config: PlaywrightTestConfig = {
|
||||||
* globalTeardown: './global-teardown',
|
* globalTeardown: './global-teardown',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user