use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsAnon method ArticleCRUDAnonymous_004_AddingSlider.
@Test(groups = { "ArticleFeatureCRUDAnonymous_004", "ArticleFeaturesCRUDAnon" })
public void ArticleCRUDAnonymous_004_AddingSlider() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clickSliderButton();
DetachedRegisterPage auth = new DetachedRegisterPage();
assertTrue(auth.isDisplayed());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject 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.article.ArticlePageObject 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.article.ArticlePageObject 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.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleCommentsTests method ArticleComments_002_replyComment.
@Test(groups = "ArticleComments_002")
@Execute(asUser = User.COMMENTS_REGULAR_USER)
public void ArticleComments_002_replyComment() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
ArticlePageObject article = new ArticlePageObject().open();
String comment = PageContent.COMMENT_TEXT + DateTime.now().getMillis();
MiniEditorComponentObject editor = article.triggerCommentArea();
editor.switchAndWrite(comment);
article.submitComment();
article.verifyCommentText(comment);
article.verifyCommentCreator(User.COMMENTS_REGULAR_USER.getUserName());
article.triggerCommentReply();
String commentReply = PageContent.REPLY_TEXT + article.getTimeStamp();
editor.switchAndReplyComment(commentReply);
article.submitReplyComment();
article.verifyCommentReply(commentReply);
article.verifyReplyCreator(User.COMMENTS_REGULAR_USER.getUserName());
}
Aggregations