use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_editDropdown.
@Test(groups = { "ArticleCRUDAnon_006" })
public void articleCRUDAnon_editDropdown() {
String articleContent = PageContent.ARTICLE_TEXT;
ArticlePageObject article = new ArticlePageObject().open("AnonEditDropdown" + "?AbTest.ADD_NEW_PAGE=CONTROL1");
VisualEditModePageObject visualEditMode = article.editArticleInCKUsingDropdown();
visualEditMode.addContent(articleContent);
visualEditMode.submitExpectingNotification().submitArticle();
article.verifyContent(articleContent);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDAnonTests method articleCRUDAnon_editArticleSecondTime.
@Test(groups = { "ArticleCRUDAnon_007" })
public void articleCRUDAnon_editArticleSecondTime() {
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = new ArticlePageObject().navigateToArticleEditPage(wikiURL, articleTitle);
visualEditMode.addContent(articleContent);
visualEditMode.submitExpectingNotification().submitArticle();
String secondArticleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
visualEditMode.navigateToArticleEditPage(wikiURL, secondArticleTitle);
visualEditMode.addContent(articleContent);
visualEditMode.submitArticle();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_006_editDropdown.
@Test(groups = { "ArticleCRUDUser_006" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_006_editDropdown() {
new ArticleContent().push(PageContent.ARTICLE_TEXT);
String articleContent = PageContent.ARTICLE_TEXT;
ArticlePageObject article = new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = article.editArticleInRTEUsingDropdown();
visualEditMode.addContent(articleContent);
visualEditMode.submitArticle();
article.verifyContent(articleContent);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_005_editByURL.
@Test(groups = { "ArticleCRUDUser_005" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_005_editByURL() {
new ArticleContent().clear();
String articleContent = PageContent.ARTICLE_TEXT;
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyContent(articleContent);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsAnon method ArticleCRUDAnonymous_002_AddingGallery.
@Test(groups = { "ArticleFeatureCRUDAnonymous_002", "ArticleFeaturesCRUDAnon" })
public void ArticleCRUDAnonymous_002_AddingGallery() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clickGalleryButton();
DetachedRegisterPage auth = new DetachedRegisterPage();
assertTrue(auth.isDisplayed());
}
Aggregations