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(test-runner): fixed wrong function calls (#7080)
Max Schmitt2b8ea73048f2
diff --git a/docs/src/test-fixtures.md b/docs/src/test-fixtures.mdindex 1de591e818..62c5330000 100644--- a/docs/src/test-fixtures.md+++ b/docs/src/test-fixtures.md@@ -21,17 +21,17 @@ Here is how typical test environment setup differs between traditional test stylconst { test } = require('@playwright/test');const { TodoPage } = require('./todo-page');-describe('todo tests', () => {+test.describe('todo tests', () => {let todoPage;- beforeEach(async ({ page }) => {+ test.beforeEach(async ({ page }) => {todoPage = new TodoPage(page);await todoPage.goto();await todoPage.addToDo('item1');await todoPage.addToDo('item2');});- afterEach(async () => {+ test.afterEach(async () => {await todoPage.removeAll();});@@ -168,7 +168,7 @@ module.exports = base.test.extend({```js js-flavor=ts// hello.ts-import base from '@playwright/test';+import { test as base } from '@playwright/test';// Define test fixtures "hello" and "helloWorld".type TestFixtures = {diff --git a/types/test.d.ts b/types/test.d.tsindex 47b1276942..cbfdd2a7ac 100644--- a/types/test.d.ts+++ b/types/test.d.ts@@ -806,7 +806,7 @@ export interface TestType<TestArgs extends KeyValue, WorkerArgs extends KeyValue* can perform setup/teardown and provide a resource to the test.** ```ts- * import base from '@playwright/test';+ * import { test as base } from '@playwright/test';* import rimraf from 'rimraf';** const test = base.extend<{ dirCount: number, dirs: string[] }>({