Package org.zanata.page.account

Examples of org.zanata.page.account.RegisterPage


            "to register",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Theory
    public void usernameCharacterValidation(String username) throws Exception {
        log.info(testName.getMethodName() + " : " + username);
        RegisterPage registerPage = new BasicWorkFlow()
                .goToHome()
                .goToRegistration()
                .enterUserName(username);
        registerPage.defocus();

        assertThat(registerPage.expectError(
                    RegisterPage.USERNAME_VALIDATION_ERROR))
                .contains(RegisterPage.USERNAME_VALIDATION_ERROR)
                .as("Username validation errors are shown");
    }
View Full Code Here


            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Theory
    public void validEmailAcceptance(ValidEmailAddressRFC2822 emailAddress)
            throws Exception {
        log.info(testName.getMethodName() + " : " + emailAddress);
        RegisterPage registerPage = new BasicWorkFlow()
                .goToHome()
                .goToRegistration()
                .enterEmail(emailAddress.toString())
                .registerFailure();

        assertThat(RegisterPage.MALFORMED_EMAIL_ERROR)
                .isNotIn(registerPage.getErrors())
                .as("Email validation errors are not shown");
    }
View Full Code Here

TOP

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

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.