From b6b60decdf96f7a4bd7ae46b078f4dcc8c1e2029 Mon Sep 17 00:00:00 2001 From: Caio Agiani Date: Tue, 1 Feb 2022 16:09:41 -0300 Subject: [PATCH] fix: typos (#11789) --- browser_patches/upload.sh | 2 +- docs/src/api/class-apiresponseassertions.md | 2 +- packages/playwright-core/src/server/webkit/protocol.d.ts | 2 +- packages/playwright-test/src/util.ts | 2 +- tests/config/commonFixtures.ts | 2 +- tests/inspector/inspectorTest.ts | 2 +- tests/playwright-test/test-output-dir.spec.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/browser_patches/upload.sh b/browser_patches/upload.sh index c1df5c0139..cbaa20bc95 100755 --- a/browser_patches/upload.sh +++ b/browser_patches/upload.sh @@ -11,7 +11,7 @@ if [[ ($1 == '--help') || ($1 == '-h') ]]; then echo "Upload ZIP-PATH to BLOB-PATH in 'builds' container." echo echo "--check pass |--check| as a second parameter instead of a zip-path to check for" - echo " existance of BLOB-PATH" + echo " existence of BLOB-PATH" echo echo "NOTE: \$AZ_ACCOUNT_KEY (azure account name) and \$AZ_ACCOUNT_NAME (azure account name)" echo "env variables are required to upload builds to CDN." diff --git a/docs/src/api/class-apiresponseassertions.md b/docs/src/api/class-apiresponseassertions.md index 12bce59154..f9a4a1b08a 100644 --- a/docs/src/api/class-apiresponseassertions.md +++ b/docs/src/api/class-apiresponseassertions.md @@ -51,7 +51,7 @@ def test_navigates_to_login_page(page: Page) -> None: * langs: java, js - returns: <[APIResponseAssertions]> -Makes the assertion check for the opposite condition. For example, this code tests that the response status is not successfull: +Makes the assertion check for the opposite condition. For example, this code tests that the response status is not successful: ```js await expect(response).not.toBeOK(); diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.ts index caf0edbc7c..bbdfde73ab 100644 --- a/packages/playwright-core/src/server/webkit/protocol.d.ts +++ b/packages/playwright-core/src/server/webkit/protocol.d.ts @@ -1172,7 +1172,7 @@ export module Protocol { export type forcePseudoStateReturnValue = { } /** - * Change how layout context type changes are handled for nodes. When the new mode would observe nodes the frontend has not yet recieved, those nodes will be sent to the frontend immediately. + * Change how layout context type changes are handled for nodes. When the new mode would observe nodes the frontend has not yet received, those nodes will be sent to the frontend immediately. */ export type setLayoutContextTypeChangedModeParameters = { /** diff --git a/packages/playwright-test/src/util.ts b/packages/playwright-test/src/util.ts index 2549b3d454..42731e9543 100644 --- a/packages/playwright-test/src/util.ts +++ b/packages/playwright-test/src/util.ts @@ -65,7 +65,7 @@ export function createFileMatcher(patterns: string | RegExp | (string | RegExp)[ if (re.test(filePath)) return true; } - // Windows might still recieve unix style paths from Cygwin or Git Bash. + // Windows might still receive unix style paths from Cygwin or Git Bash. // Check against the file url as well. if (path.sep === '\\') { const fileURL = url.pathToFileURL(filePath).href; diff --git a/tests/config/commonFixtures.ts b/tests/config/commonFixtures.ts index e2324336a3..032ba0f498 100644 --- a/tests/config/commonFixtures.ts +++ b/tests/config/commonFixtures.ts @@ -100,7 +100,7 @@ export class TestChildProcess { if (r.exitCode) throw new Error(`Process failed with exit code ${r.exitCode}`); if (r.signal) - throw new Error(`Process recieved signal: ${r.signal}`); + throw new Error(`Process received signal: ${r.signal}`); } async waitForOutput(substring: string) { diff --git a/tests/inspector/inspectorTest.ts b/tests/inspector/inspectorTest.ts index 1bb6e48f45..a78779823d 100644 --- a/tests/inspector/inspectorTest.ts +++ b/tests/inspector/inspectorTest.ts @@ -216,7 +216,7 @@ class CLIMock { this.waitForCallback = f; if (timeout) { setTimeout(() => { - r(new Error('Timed out waiting for text:\n' + text + '\n\nRecieved:\n' + this.text())); + r(new Error('Timed out waiting for text:\n' + text + '\n\nReceived:\n' + this.text())); }, timeout); } }); diff --git a/tests/playwright-test/test-output-dir.spec.ts b/tests/playwright-test/test-output-dir.spec.ts index 3b533b007b..c6a3b0892f 100644 --- a/tests/playwright-test/test-output-dir.spec.ts +++ b/tests/playwright-test/test-output-dir.spec.ts @@ -63,7 +63,7 @@ test('should work and remove non-failures', async ({ runInlineTest }, testInfo) expect(fs.existsSync(testInfo.outputPath('test-results', 'my-test-test-1-chromium'))).toBe(true); expect(fs.existsSync(testInfo.outputPath('test-results', 'my-test-test-1-chromium-retry1'))).toBe(true); - // Last retry is successfull, so output dir should be removed. + // Last retry is successful, so output dir should be removed. expect(fs.existsSync(testInfo.outputPath('test-results', 'my-test-test-1-chromium-retry2'))).toBe(false); });