Package org.zanata.page.dashboard

Examples of org.zanata.page.dashboard.DashboardBasePage


                .editUserAccount("translator")
                .clickRole("admin")
                .saveUser()
                .logout();

        DashboardBasePage dashboardBasePage = new LoginWorkFlow()
                .signIn("translator", "translator");

        assertThat(dashboardBasePage.goToAdministration().getTitle())
                .isEqualTo("Zanata: Administration")
                .as("The user can access the administration panel");
    }
View Full Code Here


    }

    public DashboardBasePage clickSignIn() {
        log.info("Click Sign In");
        waitForWebElement(signInButton).click();
        return new DashboardBasePage(getDriver());
    }
View Full Code Here

        return new HomePage(driver);
    }

    public DashboardBasePage goToDashboard() {
        driver.get(hostUrl + "dashboard");
        return new DashboardBasePage(driver);
    }
View Full Code Here

    @Feature(summary = "The user can contact the site administrator",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 181717)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void testContactAdmin() {
        DashboardBasePage dashboard =
                new LoginWorkFlow().signIn("translator", "translator");
        ContactAdminFormPage contactAdminFormPage =
                dashboard.goToHelp().clickContactAdmin();

        HelpPage helpPage = contactAdminFormPage
                .inputSubject("hello admin")
                .inputMessage("I love Zanata")
                .send();
View Full Code Here

    public DashboardBasePage goToMyDashboard() {
        log.info("Click Dashboard menu link");
        userAvatar.click();
        clickLinkAfterAnimation(BY_DASHBOARD_LINK);
        return new DashboardBasePage(getDriver());
    }
View Full Code Here

    @Feature(summary = "The user can change their password",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86823)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    @Category(BasicAcceptanceTest.class)
    public void changePasswordSuccessful() throws Exception {
        DashboardBasePage dashboard = new LoginWorkFlow()
                .signIn("translator", "translator")
                .goToSettingsTab()
                .gotoSettingsAccountTab()
                .typeOldPassword("translator")
                .typeNewPassword("newpassword")
                .clickUpdatePasswordButton();
        dashboard.expectNotification(DashboardAccountTab.PASSWORD_UPDATE_SUCCESS);
        dashboard.logout();

        assertThat(new BasicWorkFlow().goToHome().hasLoggedIn()).isFalse()
                .as("User is logged out");

        DashboardBasePage dashboardPage = new LoginWorkFlow()
                .signIn("translator", "newpassword");

        assertThat(dashboardPage.hasLoggedIn()).isTrue()
                .as("User has logged in with the new password");
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.dashboard.DashboardBasePage

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.