chore(docs): remove old and non relevant function usage (#2623)

This commit is contained in:
Yaniv Efraim 2018-05-30 01:25:20 +03:00 committed by Andrey Lushnikov
parent 5ff67dbdfe
commit 41ccd0bded

View File

@ -150,10 +150,10 @@ npm run unit -- -j 4
```js
...
// Using "fit" to run specific test
fit('should work', SX(async function() {
const response = await page.goto(EMPTY_PAGE);
fit('should work', async function({server, page}) {
const response = await page.goto(server.EMPTY_PAGE);
expect(response.ok).toBe(true);
}))
})
```
- To disable a specific test, substitute the `it` with `xit` (mnemonic rule: '*cross it*'):
@ -161,10 +161,10 @@ npm run unit -- -j 4
```js
...
// Using "xit" to skip specific test
xit('should work', SX(async function() {
const response = await page.goto(EMPTY_PAGE);
xit('should work', async function({server, page}) {
const response = await page.goto(server.EMPTY_PAGE);
expect(response.ok).toBe(true);
}))
})
```
- To run tests in non-headless mode: