use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_002_addByURL.
@Test(groups = { "ArticleCRUDUser_002" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_002_addByURL() {
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open(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_004_differentTitles.
@Test(dataProviderClass = ArticleDataProvider.class, dataProvider = "articleTitles", groups = { "ArticleCRUDUser_004" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_004_differentTitles(String articleTitle) {
String articleContent = PageContent.ARTICLE_TEXT;
String randomArticleTitle = articleTitle + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open(randomArticleTitle);
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(randomArticleTitle);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleEditDropdownTests method ArticleEditDropdown_002_user.
@Test(groups = { "ArticleEditDropdown_002" })
@Execute(asUser = User.USER)
public void ArticleEditDropdown_002_user() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
article.verifyDropdownForUser();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addingTable.
@Test(dataProviderClass = ArticleFeaturesCRUDDataProvider.class, dataProvider = "getTableProperties", groups = { "ArticleFeaturesCRUDUser_011" })
@Execute(asUser = User.USER)
public void addingTable(int border, int width, int height, int cellspacing, int cellpadding, Alignment alignment) {
new ArticleContent().clear();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
TableBuilderComponentObject addTable = visualEditMode.clickAddTableButton();
addTable.verifyAddTableLightbox();
addTable.typeAmountOfRows(3);
addTable.typeAmountOfColumns(2);
addTable.selectHeader(Headers.FIRSTCOLUMN);
addTable.typeBorderSize(border);
addTable.selectAlignment(alignment);
addTable.typeWidth(width);
addTable.typeHeight(height);
addTable.typeCellSpacing(cellspacing);
addTable.typeCellPadding(cellpadding);
addTable.submitTable();
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyTableBorder(border);
article.verifyTableCellspacing(cellspacing);
article.verifyTableCellpadding(cellpadding);
article.verifyTableAlignment(alignment);
article.verifyTableSize(width, height);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addingImagePlaceholder.
@Test(groups = { "ArticleFeaturesCRUDUser_014" })
@Execute(asUser = User.USER)
public void addingImagePlaceholder() {
new ArticleContent().clear();
new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = new WikiBasePageObject().goToArticleDefaultContentEditPage(wikiURL, TestContext.getCurrentMethodName());
ArticlePageObject article = visualEditMode.submitArticle();
PhotoAddComponentObject photoAddPhoto = article.clickAddImagePlaceholder();
PhotoOptionsComponentObject photoOptions = photoAddPhoto.addPhotoFromWiki("image", 2);
photoOptions.setCaption(PageContent.CAPTION);
photoOptions.clickAddPhoto();
article.verifyPhoto();
}
Aggregations