Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
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
Ejemplo n.º 5
0
def testRecoveryField_phoneNumber_7(setUp):
    loginForm = LoginFormPage(setUp)
    uiHelper = UiHelper(setUp)

    loginForm.openLoginForm()
    loginForm.clickForgotPassButton()
    loginForm.inputRecoveryField("+79191234567")
    loginForm.clickRecoveryButtonNext()

    element = uiHelper.waitVisibleElementByXPATH(
        loginForm.elements["titleNotFindContract"])
    assert (element) == element
Ejemplo n.º 6
0
def testRecoveryField_email_10(setUp):
    loginForm = LoginFormPage(setUp)
    uiHelper = UiHelper(setUp)

    loginForm.openLoginForm()
    loginForm.clickForgotPassButton()
    loginForm.inputRecoveryField("*****@*****.**")
    loginForm.clickRecoveryButtonNext()

    element = uiHelper.waitVisibleElementByXPATH(
        loginForm.elements["titleNotFindContract"])
    assert (element) == element
Ejemplo n.º 7
0
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
Ejemplo n.º 8
0
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