use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep1 in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_004_creatWikiNameExists.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_004" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_004_creatWikiNameExists() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = "muppets";
cnw1.typeInWikiName(wikiName);
cnw1.verifyOccupiedWikiAddress(wikiName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep1 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();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.createnewwiki.CreateNewWikiPageObjectStep1 in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_002_createWikiForChildren.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_002" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_002_createWikiForChildren() {
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);
cnw2.selectAllAgesCheckbox();
CreateNewWikiPageObjectStep3 cnw3 = cnw2.submit();
cnw3.selectThemeByName(CreateWikiMessages.WIKI_THEME);
ArticlePageObject article = cnw3.submit();
article.closeNewWikiCongratulationsLightBox();
article.verifyUserLoggedIn(User.USER_CNW.getUserName());
Assertion.assertTrue(WikiaProperties.isWikiForChildren(driver), "Wiki is not for children");
}
Aggregations