Package org.zanata.page

Examples of org.zanata.page.BasePage


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

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

        assertThat(basePage.getProjectSearchAutocompleteItems())
                .doesNotContain("About Fedora")
                .as("User cannot see the obsolete project");
    }
View Full Code Here


        return signInAndGoToPage(username, password, DashboardBasePage.class);
    }

    public SignInPage signInFailure(String username, String password) {
        log.info("log in as username: {}", username);
        return new BasePage(driver)
            .clickSignInLink()
            .enterUsername(username)
            .enterPassword(password)
            .clickSignInExpectError();
    }
View Full Code Here

            .clickSignInExpectError();
    }

    private void doSignIn(String username, String password) {
        log.info("log in as username: {}", username);
        BasePage basePage = new BasePage(driver);
        basePage.deleteCookiesAndRefresh();
        basePage.clickSignInLink()
            .enterUsername(username)
            .enterPassword(password)
            .clickSignIn()
            .waitForAMoment().until(new Predicate<WebDriver>() {
            @Override
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())
                .contains("about fedora")
                .as("Normal user can see the project");

        ProjectBasePage projectPage =
                basePage.clickSearchEntry("about fedora");

        assertThat(projectPage.getProjectName().trim())
                .isEqualTo("about fedora")
                .as("The project page is the correct one");
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.BasePage

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.