mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(docs): remove old and non relevant function usage (#2623)
This commit is contained in:
parent
5ff67dbdfe
commit
41ccd0bded
@ -150,10 +150,10 @@ npm run unit -- -j 4
|
|||||||
```js
|
```js
|
||||||
...
|
...
|
||||||
// Using "fit" to run specific test
|
// Using "fit" to run specific test
|
||||||
fit('should work', SX(async function() {
|
fit('should work', async function({server, page}) {
|
||||||
const response = await page.goto(EMPTY_PAGE);
|
const response = await page.goto(server.EMPTY_PAGE);
|
||||||
expect(response.ok).toBe(true);
|
expect(response.ok).toBe(true);
|
||||||
}))
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
- To disable a specific test, substitute the `it` with `xit` (mnemonic rule: '*cross it*'):
|
- To disable a specific test, substitute the `it` with `xit` (mnemonic rule: '*cross it*'):
|
||||||
@ -161,10 +161,10 @@ npm run unit -- -j 4
|
|||||||
```js
|
```js
|
||||||
...
|
...
|
||||||
// Using "xit" to skip specific test
|
// Using "xit" to skip specific test
|
||||||
xit('should work', SX(async function() {
|
xit('should work', async function({server, page}) {
|
||||||
const response = await page.goto(EMPTY_PAGE);
|
const response = await page.goto(server.EMPTY_PAGE);
|
||||||
expect(response.ok).toBe(true);
|
expect(response.ok).toBe(true);
|
||||||
}))
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
- To run tests in non-headless mode:
|
- To run tests in non-headless mode:
|
||||||
|
Loading…
Reference in New Issue
Block a user