Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: update step example (#35051)
Debbie O'Briena3fafb60d47f
diff --git a/docs/src/test-api/class-teststepinfo.md b/docs/src/test-api/class-teststepinfo.mdindex e5467abff1..9af00b4143 100644--- a/docs/src/test-api/class-teststepinfo.md+++ b/docs/src/test-api/class-teststepinfo.md@@ -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');});});```diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.tsindex 739993e1b1..d135b91504 100644--- a/packages/playwright/types/test.d.ts+++ b/packages/playwright/types/test.d.ts@@ -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');* });* });* ```