Package org.zanata.page.utility

Examples of org.zanata.page.utility.HomePage


    @Feature(summary = "The administrator can edit the home screen in " +
            "WYSIWYG mode",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void editPageContent() throws Exception {
        HomePage homePage = new LoginWorkFlow()
                .signIn("admin", "admin")
                .goToHomePage()
                .goToEditPageContent()
                .enterText("Test")
                .update();

        assertThat(homePage.getMainBodyContent()).isEqualTo("Test")
                .as("Homepage text has been updated");
    }
View Full Code Here


    @Feature(summary = "The administrator can edit the home screen in " +
            "html mode",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void editPageCode() throws Exception {
        HomePage homePage = new LoginWorkFlow()
                .signIn("admin", "admin")
                .goToHomePage()
                .goToEditPageCode()
                .enterText("<b>Test</b>")
                .update();

        assertThat(homePage.getMainBodyContent()).isEqualTo("Test")
                .as("Homepage text has been updated");
    }
View Full Code Here

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void signInWithGoogleOpenID() {
        String googleUsername = googleUsername1;
        String googlePassword = googlePassword1;

        HomePage homePage = new RegisterWorkFlow()
                .registerGoogleOpenID("Zanata OpenID",
                        "openidtest", googlePassword,
                        googleUsername.concat("@gmail.com"));

        assertThat("The registration message is shown",
                homePage.getNotificationMessage(),
                Matchers.equalTo("You will soon receive an email with a link" +
                        " to activate your account."));
    }
View Full Code Here

            }
        };
    }

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

    // TODO: Add a "signup success" page
    public HomePage register() {
        log.info("Click Sign Up");
        waitForWebElement(signUpButton).click();
        return new HomePage(getDriver());
    }
View Full Code Here

    }

    public HomePage clickSave() {
        log.info("Click Save");
        waitForWebElement(saveButton).click();
        return new HomePage(getDriver());
    }
View Full Code Here

    }

    public HomePage update() {
        log.info("Click Update");
        waitForWebElement(updateButton).click();
        return new HomePage(getDriver());
    }
View Full Code Here

    }

    public HomePage cancelUpdate() {
        log.info("Click Cancel");
        waitForWebElement(cancelButton).click();
        return new HomePage(getDriver());
    }
View Full Code Here

        driver.get(hostUrl);
    }

    public HomePage goToHome() {
        driver.get(hostUrl);
        return new HomePage(driver);
    }
View Full Code Here

    }

    public HomePage update() {
        log.info("Click Update");
        waitForWebElement(updateButton).click();
        return new HomePage(getDriver());
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.utility.HomePage

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.