Package org.zanata.page.account

Examples of org.zanata.page.account.SignInPage


                .editUserAccount("translator")
                .clickEnabled()
                .saveUser()
                .logout();

        SignInPage signInPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .enterUsername("translator")
                .enterPassword("translator")
                .clickSignInExpectError();
        assertThat(signInPage.getErrors())
                .contains(SignInPage.LOGIN_FAILED_ERROR)
                .as("The user's account cannot be logged in");
    }
View Full Code Here


    public SignInPage clickSignInLink() {
        log.info("Click Log In");
        WebElement signInLink = getDriver().findElement(BY_SIGN_IN);
        signInLink.click();
        return new SignInPage(getDriver());
    }
View Full Code Here

        assertThat(registerPage.getPageTitle())
                .isEqualTo("Sign up with Zanata")
                .as("The user is sent to the register page");

        SignInPage signInPage = registerPage.goToSignIn();

        assertThat(signInPage.getPageTitle())
                .isEqualTo("Log in with your username")
                .as("The user is sent to the log in page");
    }
View Full Code Here

    public void loginWithInactiveUser() throws Exception {
        new LoginWorkFlow().signIn("admin", "admin").goToAdministration()
                .goToManageUserPage().editUserAccount("translator")
                .clickEnabled().saveUser().logout();

        SignInPage signInPage = new LoginWorkFlow()
                .signInFailure("translator", "translator");
        assertThat(signInPage.getNotificationMessage())
                .isEqualTo(SignInPage.LOGIN_FAILED_ERROR)
                .as("The inactive user cannot log in");
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.account.SignInPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.