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): fix timeout error messages and the global setup sample (#43180)
Harry Tran7785b358cbda
diff --git a/docs/src/test-global-setup-teardown-js.md b/docs/src/test-global-setup-teardown-js.mdindex c0197af111..4505e3242c 100644--- a/docs/src/test-global-setup-teardown-js.md+++ b/docs/src/test-global-setup-teardown-js.md@@ -221,7 +221,7 @@ export default globalSetup;Tests have access to the `process.env` properties set in the global setup.```js-import { test } from '@playwright/test';+import { test, expect } from '@playwright/test';test('test', async ({ page }) => {// environment variables which are set in globalSetup are only available inside test().@@ -231,7 +231,7 @@ test('test', async ({ page }) => {expect(FOO).toEqual('some data');const complexData = JSON.parse(BAR);- expect(BAR).toEqual({ some: 'data' });+ expect(complexData).toEqual({ some: 'data' });});```diff --git a/docs/src/test-timeouts-js.md b/docs/src/test-timeouts-js.mdindex 13676991eb..8b34278ff2 100644--- a/docs/src/test-timeouts-js.md+++ b/docs/src/test-timeouts-js.md@@ -19,7 +19,7 @@ Timed out test produces the following error:```txtexample.spec.ts:3:1 › basic test ===========================-Timeout of 30000ms exceeded.+Test timeout of 30000ms exceeded.```Additional separate timeout, of the same value, is shared between fixture teardowns and `afterEach` hooks, after the test function has finished.@@ -133,7 +133,7 @@ Running 1000 tests using 10 workers514 skipped486 passed- Timed out waiting 3600s for the entire test run+ Timed out waiting 3600s for the test suite to run```You can set global timeout in the config.