def testInputInvalidCharacters_5(setUp): loginForm = LoginFormPage(setUp) uiHelper = UiHelper(setUp) loginForm.openLoginForm() loginForm.inputUserName("[|]'~<!--@%/*$%^&#*/()?>,|\.*/'") loginForm.inputPassword("[|]'~<!--@%/*$%^&#*/()?>,|\.*/'") loginForm.clickSignInButton() errorLigonText = uiHelper.waitVisibleElementByXPATH( loginForm.elements["errorLoginText"]) assert (errorLigonText) == errorLigonText
def testInputOneSymbol_4(setUp): loginForm = LoginFormPage(setUp) uiHelper = UiHelper(setUp) loginForm.openLoginForm() loginForm.inputUserName(".") loginForm.inputPassword(".") loginForm.clickSignInButton() errorLigonText = uiHelper.waitVisibleElementByXPATH( loginForm.elements["errorLoginText"]) assert (errorLigonText) == errorLigonText
def testUsernameEmpty_3(setUp): loginForm = LoginFormPage(setUp) uiHelper = UiHelper(setUp) loginForm.openLoginForm() loginForm.inputUserName("") loginForm.inputPassword("test") loginForm.clickSignInButton() errorLigonText = uiHelper.waitVisibleElementByXPATH( loginForm.elements["usernameMustBeFilledText"]) assert (errorLigonText) == errorLigonText
def testPasswordEmpty_2(setUp): loginForm = LoginFormPage(setUp) uiHelper = UiHelper(setUp) loginForm.openLoginForm() loginForm.inputUserName("test") loginForm.inputPassword("") loginForm.clickSignInButton() passErrorText = uiHelper.waitVisibleElementByXPATH( loginForm.elements["passMustBeFilledText"]) assert (passErrorText) == passErrorText
def testUsernameAndPassword_contractNumber_7(setUp): loginForm = LoginFormPage(setUp) uiHelper = UiHelper(setUp) loginForm.openLoginForm() loginForm.inputUserName("№test12345") loginForm.inputPassword("test") loginForm.clickSignInButton() element = uiHelper.waitVisibleElementByXPATH( loginForm.elements["errorLoginText"]) assert (element) == element
def testUsernameAndPassword_email_12(setUp): loginForm = LoginFormPage(setUp) uiHelper = UiHelper(setUp) loginForm.openLoginForm() loginForm.inputUserName("*****@*****.**") loginForm.inputPassword("test") loginForm.clickSignInButton() element = uiHelper.waitVisibleElementByXPATH( loginForm.elements["errorLoginText"]) assert (element) == element