use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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.WikiBasePageObject in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_005_createWikiPolicyViolation.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_005" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_005_createWikiPolicyViolation() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = "1234";
cnw1.typeInWikiName(wikiName);
cnw1.verifyIncorrectWikiName();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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.WikiBasePageObject 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.WikiBasePageObject in project selenium-tests by Wikia.
the class BlogCommentsTests method BlogComments_003_User_editComment.
@Test(groups = "BlogComments_003")
@Execute(asUser = User.USER)
public void BlogComments_003_User_editComment() {
WikiBasePageObject base = new WikiBasePageObject();
UserProfilePageObject userProfile = base.openProfilePage(credentials.userName, wikiURL);
userProfile.clickOnBlogTab();
BlogPageObject blogPage = userProfile.openFirstPost();
MiniEditorComponentObject editor = blogPage.triggerCommentArea();
String comment = PageContent.COMMENT_TEXT + blogPage.getTimeStamp();
editor.switchAndWrite(comment);
blogPage.submitComment();
blogPage.verifyCommentText(comment);
blogPage.verifyCommentCreator(credentials.userName);
blogPage.triggerEditCommentArea();
String commentEdited = PageContent.COMMENT_TEXT + blogPage.getTimeStamp();
editor.switchAndEditComment(commentEdited);
blogPage.submitEditComment();
blogPage.verifyCommentText(commentEdited);
}
Aggregations