use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsAnon method ArticleCRUDAnonymous_005_AddingVideo.
@Test(groups = { "ArticleFeatureCRUDAnonymous_005", "ArticleFeaturesCRUDAnon" })
public void ArticleCRUDAnonymous_005_AddingVideo() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clickVideoButton();
DetachedRegisterPage auth = new DetachedRegisterPage();
assertTrue(auth.isDisplayed());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method deleteTable.
@Test(dataProviderClass = ArticleFeaturesCRUDDataProvider.class, dataProvider = "getTableProperties", groups = { "ArticleFeaturesCRUDUser_013" })
@Execute(asUser = User.USER)
public void deleteTable(int border, int width, int height, int cellspacing, int cellpadding, Alignment alignment) {
new ArticleContent().push(String.format("{| border=\"%d\" cellpadding=\"%d\" cellspacing=\"%d\" " + "class=\"article-table article-table-selected\" " + "style=\"float: %s; height: %dpx; width: %dpx;\"\n" + "! scope=\"row\"|\n|\n|-\n! scope=\"row\"|\n|\n" + "|-\n! scope=\"row\"|\n|\n" + "|}", border, cellpadding, cellspacing, alignment.getAlignment(), height, width));
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.clickDeleteTableButton();
visualEditMode.submitArticle().verifyTableRemoved();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifyTable.
@Test(dataProviderClass = ArticleFeaturesCRUDDataProvider.class, dataProvider = "getTableProperties", groups = { "ArticleFeaturesCRUDUser_012" }, enabled = false)
@Execute(asUser = User.USER)
public void modifyTable(int border, int width, int height, int cellspacing, int cellpadding, Alignment alignment) {
new ArticleContent().push(String.format("{| border=\"%d\" cellpadding=\"%d\" cellspacing=\"%d\" " + "class=\"article-table article-table-selected\" " + "style=\"float: %s; height: %dpx; width: %dpx;\"\n" + "! scope=\"row\"|\n|\n|-\n! scope=\"row\"|\n|\n" + "|-\n! scope=\"row\"|\n|\n" + "|}", border, cellpadding, cellspacing, alignment.getAlignment(), height, width));
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.clickPropertiesTableButton();
TableBuilderComponentObject addTable = new TableBuilderComponentObject(driver);
addTable.typeBorderSize(border + additionalPropertyValue);
addTable.typeCellSpacing(cellspacing + additionalPropertyValue);
addTable.typeCellPadding(cellpadding + additionalPropertyValue);
addTable.submitTable();
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyTableBorder(border + additionalPropertyValue);
article.verifyTableCellspacing(cellspacing + additionalPropertyValue);
article.verifyTableCellpadding(cellpadding + additionalPropertyValue);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method deleteGallery.
@Test(groups = { "ArticleFeaturesCRUDUser_002" })
@Execute(asUser = User.USER)
public void deleteGallery() {
new ArticleContent().push("<gallery position=\"right\" columns=\"2\" spacing=\"medium\">\n" + "Image010.jpg\n" + "Image009.jpg\n" + "Image008.jpg\n" + "Image007.jpg\n" + "</gallery>");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.removeComponent(Components.GALLERY);
visualEditMode.verifyComponentRemoved(Components.GALLERY);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_editByURL.
@Test(groups = { "ArticleCRUDAnon_005" })
public void articleCRUDAnon_editByURL() {
String articleContent = PageContent.ARTICLE_TEXT;
ArticlePageObject article = new ArticlePageObject().open("AnonEditByURL");
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.addContent(articleContent);
visualEditMode.submitExpectingNotification().submitArticle();
article.verifyContent(articleContent);
}
Aggregations