Package org.zanata.page.dashboard.dashboardsettings

Examples of org.zanata.page.dashboard.dashboardsettings.DashboardAccountTab


    }

    public DashboardAccountTab gotoSettingsAccountTab() {
        log.info("Click Account settings sub-tab");
        clickWhenTabEnabled(waitForWebElement(settingsAccountTab));
        return new DashboardAccountTab(getDriver());
    }
View Full Code Here


    @Feature(summary = "The user must enter their current password correctly " +
            "to change it",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86823)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void changePasswordCurrentPasswordFailure() throws Exception {
        DashboardAccountTab dashboardAccountTab = new LoginWorkFlow()
                .signIn("translator", "translator")
                .goToSettingsTab()
                .gotoSettingsAccountTab()
                .typeOldPassword("nottherightpassword")
                .typeNewPassword("somenewpassword")
                .clickUpdatePasswordButton();

        assertThat(dashboardAccountTab.getErrors())
                .contains(DashboardAccountTab.INCORRECT_OLD_PASSWORD_ERROR)
                .as("The old password incorrect error is shown");
    }
View Full Code Here

    @Feature(summary = "The user must enter a non-empty new password " +
            "to change it",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86823)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void changePasswordRequiredFieldsAreNotEmpty() throws Exception {
        DashboardAccountTab dashboardAccountTab = new LoginWorkFlow()
                .signIn("translator", "translator")
                .goToSettingsTab()
                .gotoSettingsAccountTab()
                .clickUpdatePasswordButton();

        assertThat(dashboardAccountTab.getErrors())
                .contains(DashboardAccountTab.FIELD_EMPTY_ERROR)
                .as("Empty password message displayed");
    }
View Full Code Here

            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86823)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void changePasswordAreOfRequiredLength() throws Exception {
        String tooShort = "test5";
        String tooLong = "t12345678901234567890";
        DashboardAccountTab dashboardAccountTab = new LoginWorkFlow()
                .signIn("translator", "translator")
                .goToSettingsTab()
                .gotoSettingsAccountTab()
                .typeOldPassword("translator")
                .typeNewPassword(tooShort)
                .clickUpdatePasswordButton();

        assertThat(dashboardAccountTab.getErrors())
                .contains(DashboardAccountTab.PASSWORD_LENGTH_ERROR)
                .as("Incorrect password length message displayed");

        dashboardAccountTab = dashboardAccountTab
                .typeNewPassword(tooLong)
                .clickUpdatePasswordButton();

        assertThat(dashboardAccountTab.getErrors())
                .contains(DashboardAccountTab.PASSWORD_LENGTH_ERROR)
                .as("Incorrect password length message displayed");
    }
View Full Code Here

    @Feature(summary = "The user's email address change is validated",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86822)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void emailValidationIsUsedOnProfileEdit() throws Exception {
        DashboardAccountTab dashboardAccountTab = new LoginWorkFlow()
                .signIn("translator", "translator")
                .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
                .goToMyDashboard()
                .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

TOP

Related Classes of org.zanata.page.dashboard.dashboardsettings.DashboardAccountTab

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.