diff --git a/e2e-tests/e2eTestUtils/helpers.ts b/e2e-tests/e2eTestUtils/helpers.ts index 88c253ada..735fc5a57 100644 --- a/e2e-tests/e2eTestUtils/helpers.ts +++ b/e2e-tests/e2eTestUtils/helpers.ts @@ -114,28 +114,28 @@ export const defaultScreenshotOpts: Partial = { export const checkAuthState = async (page: Page) => { try { const authStateTitleString = await page.locator('h1').textContent({ timeout: 4000 }) - const checkIfTitleConatins = (potentialTitle: string) => { + const checkIfTitleContains = (potentialTitle: string) => { return authStateTitleString?.includes(potentialTitle) } switch (true) { - case checkIfTitleConatins('Enter your email'): + case checkIfTitleContains('Enter your email'): await enterYourEmail(page) break; - case checkIfTitleConatins('Enter your password'): + case checkIfTitleContains('Enter your password'): await enterYourPassword(page) break; - case checkIfTitleConatins('Set your password'): + case checkIfTitleContains('Set your password'): await setYourPassword(page) break; - case checkIfTitleConatins('Enter confirmation code'): + case checkIfTitleContains('Enter confirmation code'): await enterConfirmationCode(page) break; - case checkIfTitleConatins('Sign in'): + case checkIfTitleContains('Sign in'): await signIn(page) break; default: break; } } catch {} -} \ No newline at end of file +}