use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep2 in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_003_createWikiChangedDomain.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_003" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_003_createWikiChangedDomain() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = cnw1.getWikiName();
wikiDomain = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
cnw1.typeInWikiDomain(wikiDomain);
cnw1.verifyNextButtonEnabled();
CreateNewWikiPageObjectStep2 cnw2 = cnw1.submit();
cnw2.selectCategory(CreateWikiMessages.WIKI_CATEGORY_ID);
CreateNewWikiPageObjectStep3 cnw3 = cnw2.submit();
cnw3.selectThemeByName(CreateWikiMessages.WIKI_THEME);
ArticlePageObject article = cnw3.submit();
article.closeNewWikiCongratulationsLightBox();
article.verifyUserLoggedIn(User.USER_CNW.getUserName());
article.isStringInURL(wikiDomain);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep2 in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_001_createDeleteWiki.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_001" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_001_createDeleteWiki() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
cnw1.verifyNextButtonEnabled();
CreateNewWikiPageObjectStep2 cnw2 = cnw1.submit();
cnw2.selectCategory(CreateWikiMessages.WIKI_CATEGORY_ID);
CreateNewWikiPageObjectStep3 cnw3 = cnw2.submit();
cnw3.selectThemeByName(CreateWikiMessages.WIKI_THEME);
ArticlePageObject article = cnw3.submit();
article.verifyWikiTitleOnCongratualtionsLightBox(wikiName);
article.closeNewWikiCongratulationsLightBox();
article.verifyWikiTitleHeader(wikiName);
DeletePageObject deletePage = article.deleteUsingDropdown();
deletePage.submitDeletion();
article.verifyUserLoggedIn(User.USER_CNW.getUserName());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep2 in project selenium-tests by Wikia.
the class CreateWikiTests_loggedOutUser method loggedOutUserCanCreateNewWiki.
@Test(groups = { "CNW", "CreateNewWikiLoggedOut_001" })
public void loggedOutUserCanCreateNewWiki() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
cnw1.verifyNextButtonEnabled();
cnw1.clickNextToSignIn().navigateToSignIn();
DetachedSignInPage authModal = new DetachedSignInPage();
authModal.login(credentials.userName10, credentials.password10);
CreateNewWikiPageObjectStep2 cnw2 = new CreateNewWikiPageObjectStep2(driver);
cnw2.selectCategory(CreateWikiMessages.WIKI_CATEGORY_ID);
CreateNewWikiPageObjectStep3 cnw3 = cnw2.submit();
cnw3.selectThemeByName(CreateWikiMessages.WIKI_THEME);
ArticlePageObject article = cnw3.submit();
article.verifyWikiTitleOnCongratualtionsLightBox(wikiName);
article.closeNewWikiCongratulationsLightBox();
article.verifyWikiTitleHeader(wikiName);
article.verifyUserLoggedIn(credentials.userName10);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep2 in project selenium-tests by Wikia.
the class CreateWikiTests_lang method CreateNewWiki_lang_TC001.
@Test(dataProviderClass = CreateNewWikiDataProvider.class, dataProvider = "getLangs", groups = { "CreateNewWiki_lang_001", "CNW_lang_first" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_lang_TC001(String lang) {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
cnw1.selectLanguage(lang);
String wikiName = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
cnw1.verifyNextButtonEnabled();
CreateNewWikiPageObjectStep2 cnw2 = cnw1.submit();
cnw2.selectCategory(CreateWikiMessages.WIKI_CATEGORY_ID);
CreateNewWikiPageObjectStep3 cnw3 = cnw2.submit();
cnw3.selectThemeByName(CreateWikiMessages.WIKI_THEME);
ArticlePageObject article = cnw3.submit();
article.verifyWikiTitleOnCongratualtionsLightBox(wikiName);
article.closeNewWikiCongratulationsLightBox();
article.verifyWikiTitleHeader(wikiName);
article.verifyUserLoggedIn(User.USER_CNW.getUserName());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep2 in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_006_createWikiNoCategory.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_006" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_006_createWikiNoCategory() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = cnw1.getWikiName();
wikiDomain = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
cnw1.typeInWikiDomain(wikiDomain);
cnw1.verifyNextButtonEnabled();
CreateNewWikiPageObjectStep2 cnw2 = cnw1.submit();
cnw2.selectCategory(-1);
cnw2.verifyCategoryError();
}
Aggregations