use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject in project selenium-tests by Wikia.
the class WikiActivityTests method WikiActivityTests_004_newCategorizationIsRecordedOnActivityModule.
/**
* https://wikia-inc.atlassian.net/browse/DAR-1617
*/
@Test(groups = "WikiActivity_004")
@Execute(asUser = User.USER)
public void WikiActivityTests_004_newCategorizationIsRecordedOnActivityModule() {
ArticlePageObject article = new ArticlePageObject().open("NewCategorizationIsRecordedOnActivityModule");
String articleName = article.getArticleName();
String categoryName = PageContent.CATEGORY_NAME_PREFIX + article.getTimeStamp();
article.addCategory(categoryName);
article.submitCategory();
article.verifyCategoryPresent(categoryName);
new SpecialWikiActivityPageObject(driver).open().verifyRecentNewCategorization(articleName, credentials.userName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject in project selenium-tests by Wikia.
the class WikiActivityTests method WikiActivityTests_003_newBlogCreationIsRecordedOnActivityModule.
/**
* https://wikia-inc.atlassian.net/browse/DAR-1617
*/
@Test(groups = "WikiActivity_003")
@Execute(asUser = User.USER)
public void WikiActivityTests_003_newBlogCreationIsRecordedOnActivityModule() {
String blogTitle = PageContent.BLOG_POST_NAME_PREFIX + DateTime.now().getMillis();
String blogContent = PageContent.BLOG_CONTENT + DateTime.now().getMillis();
UserProfilePageObject userProfile = new WikiBasePageObject().openProfilePage(credentials.userName, wikiURL);
userProfile.clickOnBlogTab();
SpecialCreatePage createBlogPage = userProfile.clickOnCreateBlogPost();
VisualEditModePageObject visualEditMode = createBlogPage.populateTitleField(blogTitle);
visualEditMode.addContent(blogContent);
BlogPageObject blogPage = visualEditMode.submitBlog();
blogPage.verifyBlogTitle(blogTitle);
blogPage.verifyContent(blogContent);
new SpecialWikiActivityPageObject(driver).open().verifyRecentNewBlogPage(blogContent, blogTitle, credentials.userName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject in project selenium-tests by Wikia.
the class WikiActivityTests method WikiActivityTests_002_newPageCreationIsRecordedOnActivityModule.
/**
* https://wikia-inc.atlassian.net/browse/DAR-1617
*/
@Test(groups = "WikiActivity_002")
@Execute(asUser = User.USER)
public void WikiActivityTests_002_newPageCreationIsRecordedOnActivityModule() {
SpecialCreatePage specialCreatePage = new SpecialCreatePage().open();
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = specialCreatePage.populateTitleField(articleTitle);
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitArticle();
String articleName = article.getArticleName();
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
new SpecialWikiActivityPageObject(driver).open().verifyRecentNewPage(articleName, credentials.userName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject in project selenium-tests by Wikia.
the class Layout method globalNavigationBarIsFixedOnScrollForAnon.
@Test(groups = { "globalNavigationBarIsFixedOnScrollForAnon" })
public void globalNavigationBarIsFixedOnScrollForAnon() {
SpecialWikiActivityPageObject wikiActivity = new SpecialWikiActivityPageObject(driver).open();
wikiActivity.verifyGlobalNavigation();
wikiActivity.scrollToFooter();
wikiActivity.verifyGlobalNavigation();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject in project selenium-tests by Wikia.
the class MessageWallTests method newWallPostTitleIsShownInWikiActivity.
/**
* SUS-1309: Regression test to ensure title, content, author info of new Thread shows properly in Wiki Activity
*/
@Test(groups = { "MessageWall_009", "MessageWall", "MessageWallTests" })
@Execute(asUser = User.USER)
public void newWallPostTitleIsShownInWikiActivity() {
MessageWall wall = new MessageWall(driver).open(User.USER.getUserName());
MiniEditorComponentObject mini = wall.triggerMessageArea();
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + MessageWall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + MessageWall.getTimeStamp();
mini.switchAndWrite(message);
wall.setTitle(title);
wall.submit();
wall.verifyMessageText(title, message, User.USER.getUserName());
new SpecialWikiActivityPageObject(driver).open().verifyNewWallThreadEntry(title, message, User.USER.getUserName());
}
Aggregations