docs: fix grammar within class test API documentation (#18627)

This commit is contained in:
Chris Alley 2022-11-11 12:53:48 +13:00 committed by GitHub
parent 23171c5037
commit 1ec614bfc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1553,7 +1553,7 @@ Step body.
## method: Test.use
* 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
const { test, expect } = require('@playwright/test');

View file

@ -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
* [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
* 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
* import { test, expect } from '@playwright/test';