Package org.zanata.workflow

Examples of org.zanata.workflow.BasicWorkFlow


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

        SignInPage signInPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .enterUsername("translator")
                .enterPassword("translator")
                .clickSignInExpectError();
View Full Code Here


    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void abortCreate() throws Exception {
        String abortName = "aborttmtest";
        String abortDescription = "abort tm description";

        TranslationMemoryPage translationMemoryPage = new BasicWorkFlow()
                .goToHome()
                .goToAdministration()
                .goToTranslationMemoryPage()
                .clickCreateNew()
                .enterMemoryID(abortName)
View Full Code Here

    @Feature(summary = "The user can search for a project",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void successfulProjectSearchAndDisplay() throws Exception {
        BasePage basePage = new BasicWorkFlow()
                .goToHome()
                .enterSearch("about")
                .waitForSearchListContains("about fedora");

        assertThat(basePage.getProjectSearchAutocompleteItems())
View Full Code Here

    @Feature(summary = "The system will provide no results on an " +
            "unsuccessful search",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void unsuccessfulProjectSearch() throws Exception {
        ProjectsPage projectsPage = new BasicWorkFlow()
                .goToHome()
                .enterSearch("arodef")
                .waitForSearchListContains("Search Zanata for 'arodef'")
                .submitSearch();
View Full Code Here

                .gotoSettingsTab()
                .gotoSettingsGeneral()
                .archiveProject()
                .logout();

        BasePage basePage = new BasicWorkFlow()
                .goToHome()
                .enterSearch("about")
                .waitForSearchListContains("Search Zanata for 'about'");

        assertThat(basePage.getProjectSearchAutocompleteItems())
View Full Code Here

        googlePassword1 = getSignIn(googleUsername1);
        assertThat("Environment has Google login data",
                !googlePassword1.isEmpty());
        assertThat("Google can be reached", googleIsReachable());

        new BasicWorkFlow().goToHome().deleteCookiesAndRefresh();

        GoogleManagePermissionsPage googleManagePermissionsPage =
                new GoogleWorkFlow().resetGooglePermissions(googleUsername1,
                        googlePassword1);
View Full Code Here

            }
        };
    }

    private static HomePage logoutIfLoggedIn() {
        HomePage homePage = new BasicWorkFlow().goToHome();
        if (homePage.hasLoggedIn()) {
            homePage.logout();
        }
        return homePage;
    }
View Full Code Here

    @Feature(summary = "The user may reset their password via email",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void resetPasswordSuccessful() {
        ResetPasswordPage resetPasswordPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .goToResetPassword()
                .enterUserName("admin")
                .enterEmail("admin@example.com")
View Full Code Here

    @Feature(summary = "The user must enter a known account and email pair " +
            "to reset their password",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void resetPasswordFailureForInvalidAccount() {
        ResetPasswordPage resetPasswordPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .goToResetPassword()
                .enterUserName("nosuchuser")
                .enterEmail("nosuchuser@nosuchdomain.com")
View Full Code Here

    @Feature(summary = "The user must enter a valid account and email pair " +
            "to reset their password",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void invalidResetPasswordFieldEntries() {
        ResetPasswordPage resetPasswordPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .goToResetPassword()
                .enterUserName("b")
                .enterEmail("b")
View Full Code Here

TOP

Related Classes of org.zanata.workflow.BasicWorkFlow

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.