diff --git a/packages/image-comparison-core/src/helpers/afterScreenshot.interfaces.ts b/packages/image-comparison-core/src/helpers/afterScreenshot.interfaces.ts index 2eb472aa..8104ec40 100644 --- a/packages/image-comparison-core/src/helpers/afterScreenshot.interfaces.ts +++ b/packages/image-comparison-core/src/helpers/afterScreenshot.interfaces.ts @@ -58,7 +58,7 @@ export interface ScreenshotFileNameOptions { deviceName: string; // The device pixel ratio devicePixelRatio: number; - // The string that needs to be formated + // The string that needs to be formatted formatImageName: string; // Is this a mobile isMobile: boolean; diff --git a/packages/visual-service/src/storybook/utils.ts b/packages/visual-service/src/storybook/utils.ts index 86c5d353..eb8675a6 100644 --- a/packages/visual-service/src/storybook/utils.ts +++ b/packages/visual-service/src/storybook/utils.ts @@ -60,7 +60,7 @@ export async function checkStorybookIsRunning(url: string) { try { const res = await fetch(url, { method: 'GET', headers: {} }) if (res.status !== 200) { - throw new Error(`Unxpected status: ${res.status}`) + throw new Error(`Unexpected status: ${res.status}`) } } catch (_e) { log.error(`It seems that the Storybook instance is not running at: ${url}. Are you sure it's running?`) diff --git a/tests/specs/checkMethodsFolders.spec.ts b/tests/specs/checkMethodsFolders.spec.ts index 27fe31ac..2fd05e3a 100644 --- a/tests/specs/checkMethodsFolders.spec.ts +++ b/tests/specs/checkMethodsFolders.spec.ts @@ -11,7 +11,7 @@ describe('@wdio/visual-service check methods folder options', () => { await browser.pause(500) }) - // Chrome remembers the last postion when the url is loaded again, this will reset it. + // Chrome remembers the last position when the url is loaded again, this will reset it. afterEach(async () => await browser.execute('window.scrollTo(0, 0);', [])) describe('checkFullPageScreen method with folder options', () => { diff --git a/tests/specs/multiremote.spec.ts b/tests/specs/multiremote.spec.ts index d0ecedea..0e5db562 100644 --- a/tests/specs/multiremote.spec.ts +++ b/tests/specs/multiremote.spec.ts @@ -12,7 +12,7 @@ describe('@wdio/visual-service check that multi remote is working', () => { await multiremotebrowser.chromeBrowserTwo.pause(500) }) - // Chrome remembers the last postion when the url is loaded again, this will reset it. + // Chrome remembers the last position when the url is loaded again, this will reset it. afterEach(async () => { await multiremotebrowser.chromeBrowserOne.execute( 'window.scrollTo(0, 0);', diff --git a/tests/specs/saveMethodsFolders.spec.ts b/tests/specs/saveMethodsFolders.spec.ts index f8ef1567..03a340c7 100644 --- a/tests/specs/saveMethodsFolders.spec.ts +++ b/tests/specs/saveMethodsFolders.spec.ts @@ -13,7 +13,7 @@ describe('@wdio/visual-service save methods folder options', () => { await browser.pause(500) }) - // Chrome remembers the last postion when the url is loaded again, this will reset it. + // Chrome remembers the last position when the url is loaded again, this will reset it. afterEach(async () => await browser.execute('window.scrollTo(0, 0);', [])) describe('saveFullPageScreen method with folder options', () => {