use of com.wikia.webdriver.common.core.annotations.CreationTicket in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_021_YoutubeTag_Publish.
@CreationTicket(ticketID = "CONCF-626")
@Test(groups = { "RTE_extended_4", "RTE_extended_021" })
public void RTE_021_YoutubeTag_Publish() {
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>");
article = source.clickPublishButton();
article.verifyArticleTitle(articleName);
}
use of com.wikia.webdriver.common.core.annotations.CreationTicket 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.common.core.annotations.CreationTicket in project selenium-tests by Wikia.
the class ModalTests method ModalTests_verifyScrollbarAppears.
@CreationTicket(ticketID = "CONCF-621")
@Test(groups = { "ModalTests_verifyScrollbarAppears_001", "ModalTests" }, dataProvider = "DimensionDataProvider")
@Execute(asUser = User.USER)
public void ModalTests_verifyScrollbarAppears(Dimension dimension) {
String errorMessage = "can not scroll window";
ArticlePageObject article = new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
GalleryBuilderComponentObject galleryBuilder = visualEditMode.clickGalleryButton();
// resize window
driver.manage().window().setSize(dimension);
// make sure you can scroll to finish button and the finish button is visible
Assertion.assertTrue(galleryBuilder.isFinishButtonVisibleOnPage(), errorMessage);
}
Aggregations