Package org.zanata.page.glossary

Examples of org.zanata.page.glossary.GlossaryPage


    public GlossaryPage goToGlossary() {
        log.info("Click Glossary");
        // Dynamically find the link, as it is not present for every user
        clickNavMenuItem(getDriver().findElement(By.id("glossary_link")));
        return new GlossaryPage(getDriver());
    }
View Full Code Here


        assertThat(clientWorkFlow.isPushSuccessful(result),
                Matchers.is(true));

        // Make sure glossary shows up on the page
        GlossaryPage glossaryPage =
                new LoginWorkFlow().signIn("admin", "admin").goToGlossary();
        List<String> langs = glossaryPage.getAvailableGlossaryLanguages();

        assertThat(langs.size(), greaterThan(0));
        assertThat(langs, containsInAnyOrder("Polish",
                "Hindi", "English (United States)"));
        assertThat(glossaryPage.getGlossaryEntryCount("Polish"), greaterThan(1));
        assertThat(glossaryPage.getGlossaryEntryCount("Hindi"), greaterThan(1));
        assertThat(glossaryPage.getGlossaryEntryCount("English (United States)"),
                greaterThan(1));
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.glossary.GlossaryPage

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.