use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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.editmode.VisualEditModePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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.editmode.VisualEditModePageObject 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.editmode.VisualEditModePageObject 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);
}
Aggregations