use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject 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.ArticlePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_addDropdown.
@Test(groups = { "ArticleCRUDAnon_003" })
public void articleCRUDAnon_addDropdown() {
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
ArticlePageObject article = new ArticlePageObject().open("AnonAddDropdown");
VisualEditorPageObject ve = article.createArticleInVEUsingDropdown(articleTitle);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
article = ve.clickVEEditAndPublish(articleContent);
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_001_specialPage.
@Test(groups = { "ArticleCRUDUser_001" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_001_specialPage() {
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();
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_003_addDropdown.
@Test(groups = { "ArticleCRUDUser_003", "Smoke1" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_003_addDropdown() {
new ArticleContent().clear();
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
ArticlePageObject article = new ArticlePageObject().open(TestContext.getCurrentMethodName() + "?AbTest.ADD_NEW_PAGE=CONTROL1");
VisualEditModePageObject visualEditMode = article.createArticleInCKUsingDropdown(articleTitle);
visualEditMode.addContent(articleContent);
visualEditMode.submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
Aggregations