use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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.article.editmode.VisualEditModePageObject 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.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_addByURL.
@Test(groups = { "ArticleCRUDAnon_002" })
public void articleCRUDAnon_addByURL() {
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = new ArticlePageObject().navigateToArticleEditPage(wikiURL, articleTitle);
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitExpectingNotification().submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_differentTitles.
@Test(dataProviderClass = ArticleDataProvider.class, dataProvider = "articleTitles", groups = { "ArticleCRUDAnon_004" })
public void articleCRUDAnon_differentTitles(String articleTitle) {
String articleContent = PageContent.ARTICLE_TEXT;
String randomArticleTitle = articleTitle + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = new ArticlePageObject().navigateToArticleEditPage(wikiURL, randomArticleTitle);
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitExpectingNotification().submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(randomArticleTitle);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_addBySpecialPage.
@Test(groups = { "ArticleCRUDAnon_001" })
public void articleCRUDAnon_addBySpecialPage() {
WikiBasePageObject base = new WikiBasePageObject();
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
SpecialCreatePage specialCreatePage = new SpecialCreatePage().open();
VisualEditModePageObject visualEditMode = specialCreatePage.populateTitleField(articleTitle);
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
Aggregations