Examples of expectError()


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

                .goToHome()
                .goToRegistration()
                .enterEmail(emailAddress.toString())
                .registerFailure();

        assertThat(registerPage.expectError(RegisterPage.MALFORMED_EMAIL_ERROR))
                .contains(RegisterPage.MALFORMED_EMAIL_ERROR)
                .as("The email formation error is displayed");
    }

}
View Full Code Here

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

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

                .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.ResetPasswordPage.expectError()

                .goToResetPassword()
                .enterUserName("b")
                .enterEmail("b")
                .resetFailure();

        assertThat(resetPasswordPage.expectError("not a well-formed email address"))
                .contains("not a well-formed email address")
                .as("Invalid email error is displayed");

        String error = resetPasswordPage.getErrors().get(0);
        // Both are valid, but show seemingly at random
View Full Code Here

Examples of org.zanata.page.account.ResetPasswordPage.expectError()

                .clickSignInLink()
                .goToResetPassword()
                .clearFields()
                .resetFailure();

        assertThat(resetPasswordPage.expectError("may not be empty"))
                .contains("may not be empty")
                .as("Empty email error is displayed");

        // All are valid, but may show at random
        String error = resetPasswordPage.getErrors().get(0);
View Full Code Here

Examples of org.zanata.page.administration.TranslationMemoryEditPage.expectError()

                .clickCreateNew()
                .enterMemoryID(nonUniqueTMId)
                .enterMemoryDescription("Meh")
                .clickSaveAndExpectFailure();

        assertThat(translationMemoryEditPage.expectError(
                    TranslationMemoryPage.ID_UNAVAILABLE))
                .contains(TranslationMemoryPage.ID_UNAVAILABLE)
                .as("The Id Is Not Available error is displayed");

        translationMemoryEditPage = translationMemoryEditPage
View Full Code Here

Examples of org.zanata.page.administration.TranslationMemoryEditPage.expectError()

        translationMemoryEditPage = translationMemoryEditPage
                .clickSaveAndExpectFailure();

        translationMemoryEditPage.assertNoCriticalErrors(); // RHBZ-1010771

        assertThat(translationMemoryEditPage.expectError(
                    TranslationMemoryPage.ID_UNAVAILABLE))
                .contains(TranslationMemoryPage.ID_UNAVAILABLE)
                .as("The Id Is Not Available error is displayed");
    }
View Full Code Here

Examples of org.zanata.page.dashboard.dashboardsettings.DashboardAccountTab.expectError()

                .goToSettingsTab()
                .gotoSettingsAccountTab()
                .typeNewAccountEmailAddress("admin@example.com")
                .clickUpdateEmailButton();

        assertThat(dashboardAccountTab.expectError(
                    DashboardAccountTab.EMAIL_TAKEN_ERROR))
                .contains(DashboardAccountTab.EMAIL_TAKEN_ERROR)
                .as("The email is rejected, being already taken");

        dashboardAccountTab = dashboardAccountTab
View Full Code Here

Examples of org.zanata.page.dashboard.dashboardsettings.DashboardAccountTab.expectError()

                .goToSettingsTab()
                .gotoSettingsAccountTab()
                .typeNewAccountEmailAddress("test @example.com")
                .clickUpdateEmailButton();

        assertThat(dashboardAccountTab.expectError(
                    RegisterPage.MALFORMED_EMAIL_ERROR))
                .contains(RegisterPage.MALFORMED_EMAIL_ERROR)
                .as("The email is rejected, being of invalid format");
    }
}
View Full Code Here

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

                .goToProject("about fedora")
                .clickCreateVersionLink()
                .inputVersionId("-A");
        createVersionPage.defocus();

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

        createVersionPage = createVersionPage.inputVersionId("B-");
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.