docs: fix grammar within class test API documentation (#18627)
This commit is contained in:
parent
23171c5037
commit
1ec614bfc4
|
|
@ -1553,7 +1553,7 @@ Step body.
|
||||||
## method: Test.use
|
## method: Test.use
|
||||||
* since: v1.10
|
* since: v1.10
|
||||||
|
|
||||||
Specifies options or fixtures to use in a single test file or a [`method: Test.describe#1`] group. Most useful to set an option, for example set `locale` to configure `context` fixture. `test.use` can be called either in the global scope or inside `test.describe`, it's is an error to call it within `beforeEach` or `beforeAll`.
|
Specifies options or fixtures to use in a single test file or a [`method: Test.describe#1`] group. Most useful to set an option, for example set `locale` to configure `context` fixture. `test.use` can be called either in the global scope or inside `test.describe`. It is an error to call it within `beforeEach` or `beforeAll`.
|
||||||
|
|
||||||
```js tab=js-js
|
```js tab=js-js
|
||||||
const { test, expect } = require('@playwright/test');
|
const { test, expect } = require('@playwright/test');
|
||||||
|
|
|
||||||
2
packages/playwright-test/types/test.d.ts
vendored
2
packages/playwright-test/types/test.d.ts
vendored
|
|
@ -2579,7 +2579,7 @@ export interface TestType<TestArgs extends KeyValue, WorkerArgs extends KeyValue
|
||||||
* Specifies options or fixtures to use in a single test file or a
|
* Specifies options or fixtures to use in a single test file or a
|
||||||
* [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe-1) group. Most useful to set
|
* [test.describe(title, callback)](https://playwright.dev/docs/api/class-test#test-describe-1) group. Most useful to set
|
||||||
* an option, for example set `locale` to configure `context` fixture. `test.use` can be called either in the global scope
|
* an option, for example set `locale` to configure `context` fixture. `test.use` can be called either in the global scope
|
||||||
* or inside `test.describe`, it's is an error to call it within `beforeEach` or `beforeAll`.
|
* or inside `test.describe`. It is an error to call it within `beforeEach` or `beforeAll`.
|
||||||
*
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* import { test, expect } from '@playwright/test';
|
* import { test, expect } from '@playwright/test';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue