Examples of defocus()


Examples of org.zanata.page.account.RegisterPage.defocus()

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void usernamePreExisting() throws Exception {
        RegisterPage registerPage = homePage
                .goToRegistration()
                .enterUserName("admin");
        registerPage.defocus();

        assertThat(registerPage.expectError(
                    RegisterPage.USERNAME_UNAVAILABLE_ERROR))
                .contains(RegisterPage.USERNAME_UNAVAILABLE_ERROR)
                .as("Username not available message is shown");
View Full Code Here

Examples of org.zanata.page.account.RegisterPage.defocus()

                InvalidEmailAddressRFC2822.PLAIN_ADDRESS.toString());
        fields.put("username", "emailvalidation");
        RegisterPage registerPage = homePage
                .goToRegistration()
                .setFields(fields);
        registerPage.defocus();

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

Examples of org.zanata.page.account.RegisterPage.defocus()

        fields.put("username", "");
        fields.put("email", "");
        fields.put("password", "");
        RegisterPage registerPage =
                homePage.goToRegistration().setFields(fields);
        registerPage.defocus();

        assertThat(registerPage.getErrors(4)).containsExactly(
                RegisterPage.REQUIRED_FIELD_ERROR,
                RegisterPage.USERNAME_VALIDATION_ERROR,
                RegisterPage.REQUIRED_FIELD_ERROR,
View Full Code Here

Examples of org.zanata.page.account.RegisterPage.defocus()

    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.defocus()

        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.projectversion.CreateVersionPage.defocus()

                .signIn("admin", "admin")
                .goToProjects()
                .goToProject("about fedora")
                .clickCreateVersionLink()
                .inputVersionId("");
        createVersionPage.defocus();

        assertThat(createVersionPage.getErrors())
                .contains("value is required")
                .as("The empty value is rejected");
    }
View Full Code Here

Examples of org.zanata.page.projectversion.CreateVersionPage.defocus()

                .signIn("admin", "admin")
                .goToProjects()
                .goToProject("about fedora")
                .clickCreateVersionLink()
                .inputVersionId("-A");
        createVersionPage.defocus();

        assertThat(createVersionPage.expectError(
                    CreateVersionPage.VALIDATION_ERROR))
                .contains(CreateVersionPage.VALIDATION_ERROR)
                .as("The input is rejected");
View Full Code Here

Examples of org.zanata.page.projectversion.CreateVersionPage.defocus()

                    CreateVersionPage.VALIDATION_ERROR))
                .contains(CreateVersionPage.VALIDATION_ERROR)
                .as("The input is rejected");

        createVersionPage = createVersionPage.inputVersionId("B-");
        createVersionPage.defocus();

        assertThat(createVersionPage.expectError(
                    CreateVersionPage.VALIDATION_ERROR))
                .contains(CreateVersionPage.VALIDATION_ERROR)
                .as("The input is rejected");
View Full Code Here

Examples of org.zanata.page.projectversion.CreateVersionPage.defocus()

                    CreateVersionPage.VALIDATION_ERROR))
                .contains(CreateVersionPage.VALIDATION_ERROR)
                .as("The input is rejected");

        createVersionPage = createVersionPage.inputVersionId("_C_");
        createVersionPage.defocus();
        createVersionPage = createVersionPage.waitForNumErrors(1);

        assertThat(createVersionPage.expectError(
                    CreateVersionPage.VALIDATION_ERROR))
                .contains(CreateVersionPage.VALIDATION_ERROR)
View Full Code Here

Examples of org.zanata.page.projectversion.CreateVersionPage.defocus()

                    CreateVersionPage.VALIDATION_ERROR))
                .contains(CreateVersionPage.VALIDATION_ERROR)
                .as("The input is rejected");

        createVersionPage = createVersionPage.inputVersionId("A-B_C");
        createVersionPage.defocus();
        createVersionPage = createVersionPage.waitForNumErrors(0);

        assertThat(createVersionPage.getErrors())
                .doesNotContain(CreateVersionPage.VALIDATION_ERROR)
                .as("The input is acceptable");
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.