Package org.zanata.page.administration

Examples of org.zanata.page.administration.ManageLanguageTeamMemberPage


@Slf4j
public class LanguageWorkFlow extends AbstractWebWorkFlow {

    public ManageLanguageTeamMemberPage addLanguageAndJoin(String localeId) {
        ManageLanguageTeamMemberPage teamMemberPage = addLanguage(localeId)
                .manageTeamMembersFor(localeId);
        if (teamMemberPage.getMemberUsernames().contains("admin")) {
            log.warn("admin has already joined the language [{}]", localeId);
            return teamMemberPage;
        }
        return teamMemberPage.joinLanguageTeam();
    }
View Full Code Here


    @Feature(summary = "The administrator can add a member to a language team",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 181703)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void translatorJoinsLanguageTeam() throws Exception {
        ManageLanguageTeamMemberPage manageTeamMemberPage = new LoginWorkFlow()
                .signIn("admin", "admin")
                .goToAdministration()
                .goToManageLanguagePage()
                .manageTeamMembersFor("pl")
                .clickAddTeamMember()
                .searchPersonAndAddToTeam("translator");

        assertThat(manageTeamMemberPage.getMemberUsernames())
                .contains("translator")
                .as("Translator is a listed member of the pl team");
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.administration.ManageLanguageTeamMemberPage

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.