use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_003_InternalLink.
@Test(groups = { "RTE_extended_1", "RTE_extended_003" })
public void RTE_003_InternalLink() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickInternalLink();
Assertion.assertEquals(source.getSourceContent(), "[[Link title]]");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_020_YoutubeTag_Preview.
@CreationTicket(ticketID = "CONCF-626")
@Test(groups = { "RTE_extended_4", "RTE_extended_020" })
public void RTE_020_YoutubeTag_Preview() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
YoutubeVideo video = YoutubeVideoProvider.getLatestVideoForQuery("water");
String videoID = video.getID();
source.addContentInSourceMode("<youtube>\n" + videoID + "\n</youtube>");
PreviewEditModePageObject preview = source.previewArticle();
preview.verifyVideoOnPreview(videoID);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_015_Slider.
@Test(groups = { "RTE_extended_3", "RTE_extended_015" })
public void RTE_015_Slider() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickAddGallery();
source.verifyComponentSelector();
SliderBuilderComponentObject sliderBuilder = (SliderBuilderComponentObject) source.addComponent("slider");
sliderBuilder.selectMenuPosition(MenuPositions.VERTICAL);
AddPhotoComponentObject sliderAddPhoto = sliderBuilder.clickAddPhoto();
sliderAddPhoto.search("image");
List<String> photoNames = sliderAddPhoto.choosePhotos(4);
sliderAddPhoto.clickSelect();
sliderBuilder.clickFinish();
Assertion.assertEquals(source.getSourceContent(), "<gallery type=\"slider\" orientation=\"right\">\n" + photoNames.get(0) + "\n" + photoNames.get(1) + "\n" + photoNames.get(2) + "\n" + photoNames.get(3) + "\n</gallery>");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_011_HLine.
@Test(groups = { "RTE_extended_2", "RTE_extended_011" })
public void RTE_011_HLine() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickHorizontalLine();
Assertion.assertEquals(source.getSourceContent(), "\n----\n");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_001_Bold.
@Test(groups = { "RTE_extended_1", "RTE_extended_001" })
public void RTE_001_Bold() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickBold();
Assertion.assertEquals(source.getSourceContent(), "'''Bold text'''");
}
Aggregations