docs: update step example (#35051)
This commit is contained in:
parent
4024605c5a
commit
a3fafb60d4
|
@ -9,9 +9,8 @@ import { test, expect } from '@playwright/test';
|
|||
|
||||
test('basic test', async ({ page, browserName }) => {
|
||||
await test.step('check some behavior', async step => {
|
||||
await step.skip(browserName === 'webkit', 'The feature is not available in WebKit');
|
||||
step.skip(browserName === 'webkit', 'The feature is not available in WebKit');
|
||||
// ... rest of the step code
|
||||
await page.check('input');
|
||||
});
|
||||
});
|
||||
```
|
||||
|
|
|
@ -9590,9 +9590,8 @@ export interface TestInfoError {
|
|||
*
|
||||
* test('basic test', async ({ page, browserName }) => {
|
||||
* await test.step('check some behavior', async step => {
|
||||
* await step.skip(browserName === 'webkit', 'The feature is not available in WebKit');
|
||||
* step.skip(browserName === 'webkit', 'The feature is not available in WebKit');
|
||||
* // ... rest of the step code
|
||||
* await page.check('input');
|
||||
* });
|
||||
* });
|
||||
* ```
|
||||
|
|
Loading…
Reference in New Issue