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
chore: fix typos (#36091)
Noritaka Kobayashif4d655adcceb
diff --git a/docs/src/api/class-websocketroute.md b/docs/src/api/class-websocketroute.mdindex 3328c7df1d..fcbe1b21f1 100644--- a/docs/src/api/class-websocketroute.md+++ b/docs/src/api/class-websocketroute.md@@ -5,7 +5,7 @@ Whenever a [`WebSocket`](https://developer.mozilla.org/en-US/docs/Web/API/WebSoc**Mocking**-By default, the routed WebSocket will not connect to the server. This way, you can mock entire communcation over the WebSocket. Here is an example that responds to a `"request"` with a `"response"`.+By default, the routed WebSocket will not connect to the server. This way, you can mock entire communication over the WebSocket. Here is an example that responds to a `"request"` with a `"response"`.```jsawait page.routeWebSocket('wss://example.com/ws', ws => {diff --git a/docs/src/mock.md b/docs/src/mock.mdindex 50bc3915ce..24385d3497 100644--- a/docs/src/mock.md+++ b/docs/src/mock.md@@ -438,7 +438,7 @@ Read more about [advanced networking](./network.md).## Mock WebSockets-The following code will intercept WebSocket connections and mock entire communcation over the WebSocket, instead of connecting to the server. This example responds to a `"request"` with a `"response"`.+The following code will intercept WebSocket connections and mock entire communication over the WebSocket, instead of connecting to the server. This example responds to a `"request"` with a `"response"`.```jsawait page.routeWebSocket('wss://example.com/ws', ws => {diff --git a/docs/src/test-api/class-test.md b/docs/src/test-api/class-test.mdindex fe1d92d8b3..2511f412d2 100644--- a/docs/src/test-api/class-test.md+++ b/docs/src/test-api/class-test.md@@ -469,7 +469,7 @@ Learn more about the execution modes [here](../test-parallel.md).test('runs in parallel 2', async ({ page }) => {});```-* Running tests in order, retrying each failed test independetly.+* Running tests in order, retrying each failed test independently.This is the default mode. It can be useful to set it explicitly to override project configuration that uses `fullyParallel`.diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.tsindex 5fd12155ff..b5ab6a2d2b 100644--- a/packages/playwright-client/types/types.d.ts+++ b/packages/playwright-client/types/types.d.ts@@ -15528,7 +15528,7 @@ export interface CDPSession {** **Mocking***- * By default, the routed WebSocket will not connect to the server. This way, you can mock entire communcation over+ * By default, the routed WebSocket will not connect to the server. This way, you can mock entire communication over* the WebSocket. Here is an example that responds to a `"request"` with a `"response"`.** ```jsdiff --git a/packages/playwright-core/src/server/har/harTracer.ts b/packages/playwright-core/src/server/har/harTracer.tsindex 2efce8ecc5..f2421916e2 100644--- a/packages/playwright-core/src/server/har/harTracer.ts+++ b/packages/playwright-core/src/server/har/harTracer.ts@@ -455,7 +455,7 @@ export class HarTracer {status: response.status(),statusText: response.statusText(),httpVersion: response.httpVersion(),- // These are bad values that will be overwritten bellow.+ // These are bad values that will be overwritten below.cookies: [],headers: [],content: {diff --git a/packages/playwright-core/src/server/harBackend.ts b/packages/playwright-core/src/server/harBackend.tsindex b3a6dc0fa9..a8ebb2e54d 100644--- a/packages/playwright-core/src/server/harBackend.ts+++ b/packages/playwright-core/src/server/harBackend.ts@@ -104,7 +104,7 @@ export class HarBackend {const candidataBoundary = multipartBoundary(candidate.request.headers);if (!candidataBoundary)continue;- // Try to match multipart/form-data ignroing boundary as it changes between requests.+ // Try to match multipart/form-data ignoring boundary as it changes between requests.if (postData.toString().replaceAll(boundary, '') !== buffer.toString().replaceAll(candidataBoundary, ''))continue;}diff --git a/packages/playwright-core/src/server/webkit/wkProvisionalPage.ts b/packages/playwright-core/src/server/webkit/wkProvisionalPage.tsindex 13c5ecef16..4fa5d3e709 100644--- a/packages/playwright-core/src/server/webkit/wkProvisionalPage.ts+++ b/packages/playwright-core/src/server/webkit/wkProvisionalPage.ts@@ -86,7 +86,7 @@ export class WKProvisionalPage {this._wkPage._adoptRequestFromNewProcess(this._coopNavigationRequest, this._session, event.requestId);// Simply ignore this event as it has already been dispatched from the original process// and there will ne no requestIntercepted event from the provisional process as it resumes- // existing network load (that has already received reponse headers).+ // existing network load (that has already received response headers).return;}this._wkPage._onRequestWillBeSent(this._session, event);diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.tsindex 5fd12155ff..b5ab6a2d2b 100644--- a/packages/playwright-core/types/types.d.ts+++ b/packages/playwright-core/types/types.d.ts@@ -15528,7 +15528,7 @@ export interface CDPSession {** **Mocking***- * By default, the routed WebSocket will not connect to the server. This way, you can mock entire communcation over+ * By default, the routed WebSocket will not connect to the server. This way, you can mock entire communication over* the WebSocket. Here is an example that responds to a `"request"` with a `"response"`.** ```jsdiff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.tsindex 675f6877ad..6c7db86f61 100644--- a/packages/playwright/types/test.d.ts+++ b/packages/playwright/types/test.d.ts@@ -4064,7 +4064,7 @@ export interface TestType<TestArgs extends {}, WorkerArgs extends {}> {* test('runs in parallel 2', async ({ page }) => {});* ```*- * - Running tests in order, retrying each failed test independetly.+ * - Running tests in order, retrying each failed test independently.** This is the default mode. It can be useful to set it explicitly to override project configuration that uses* `fullyParallel`.diff --git a/tests/assets/client-certificates/README.md b/tests/assets/client-certificates/README.mdindex 8e1167b9a1..ef9a7247fb 100644--- a/tests/assets/client-certificates/README.md+++ b/tests/assets/client-certificates/README.md@@ -18,7 +18,7 @@ openssl req \```bashmkdir -p client/trusted-# generate server-signed (valid) certifcate+# generate server-signed (valid) certificateopenssl req \-newkey rsa:4096 \-keyout client/trusted/key.pem \@@ -45,7 +45,7 @@ openssl pkcs12 -export -out client/trusted/cert.pfx -inkey client/trusted/key.pe```bashmkdir -p client/localhost-# generate server-signed (valid) certifcate+# generate server-signed (valid) certificateopenssl req \-newkey rsa:4096 \-keyout client/localhost/localhost.key \diff --git a/tests/assets/to-do-notifications/scripts/todo.js b/tests/assets/to-do-notifications/scripts/todo.jsindex 2e3cfae210..52fee476a9 100644--- a/tests/assets/to-do-notifications/scripts/todo.js+++ b/tests/assets/to-do-notifications/scripts/todo.js@@ -172,7 +172,7 @@ window.onload = () => {objectStoreRequest.onsuccess = (event) => {// Report the success of our request- // (to detect whether it has been succesfully+ // (to detect whether it has been successfully// added to the database, you'd look at transaction.oncomplete)note.appendChild(createListItem('Request successful.'));diff --git a/tests/playwright-test/only-changed.spec.ts b/tests/playwright-test/only-changed.spec.tsindex 00614598de..0e02f9f10b 100644--- a/tests/playwright-test/only-changed.spec.ts+++ b/tests/playwright-test/only-changed.spec.ts@@ -182,7 +182,7 @@ test('should throw nice error message if git doesnt work', async ({ runInlineTesexpect(result.output, 'contains git command output').toContain('unknown revision or path not in the working tree');});-test('should suppport component tests', async ({ runInlineTest, git, writeFiles }) => {+test('should support component tests', async ({ runInlineTest, git, writeFiles }) => {await writeFiles({'playwright.config.ts': playwrightCtConfigText,'playwright/index.html': `<script type="module" src="./index.ts"></script>`,diff --git a/tests/playwright-test/reporter-html.spec.ts b/tests/playwright-test/reporter-html.spec.tsindex ee701969d9..79bc295814 100644--- a/tests/playwright-test/reporter-html.spec.ts+++ b/tests/playwright-test/reporter-html.spec.ts@@ -805,7 +805,7 @@ for (const useIntermediateMergeReport of [true, false] as const) {await expect(page.getByTestId('test-snippet')).toContainText(`await test.step.skip('skipped step title', async () => {`);});- test('step title should inlclude skipped step description', async ({ runInlineTest, page, showReport }) => {+ test('step title should include skipped step description', async ({ runInlineTest, page, showReport }) => {const result = await runInlineTest({'playwright.config.js': `export default { testDir: './tests' };