Examples of RegisterPage


Examples of org.zanata.page.account.RegisterPage

    @Feature(summary = "The user can toggle the entered password visible and " +
            "masked",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test
    public void togglePasswordVisible() {
        RegisterPage registerPage = new BasicWorkFlow()
                .goToHome()
                .goToRegistration()
                .enterPassword("mypassword");

        assertThat(registerPage.getPasswordFieldType())
                .isEqualTo("password")
                .as("The password field starts as masked");

        registerPage = registerPage.clickPasswordShowToggle();

        assertThat(registerPage.getPasswordFieldType())
                .isEqualTo("text")
                .as("The password field is now not masked");

        registerPage = registerPage.clickPasswordShowToggle();

        assertThat(registerPage.getPasswordFieldType())
                .isEqualTo("password")
                .as("The password field is again masked");
        assertThat(registerPage.getPassword())
                .isEqualTo("mypassword")
                .as("The password field did not lose the entered text");
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

            bugzilla = 981498)
    @Test(expected = AssertionError.class)
    public void bug981498_underscoreRules() {
        fields.put("email", "bug981498test@example.com");
        fields.put("username", "______");
        RegisterPage registerPage =
                homePage.goToRegistration().setFields(fields);
        registerPage.defocus();

        assertThat(registerPage.getErrors())
                .contains(RegisterPage.USERNAME_VALIDATION_ERROR)
                .as("A username of all underscores is not valid");
    }
View Full Code Here

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

Examples of org.zanata.page.account.RegisterPage

            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
Copyright © 2018 www.massapi.com. 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.