use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_006_EmbedFile.
@Test(groups = { "RTE_extended_1", "RTE_extended_006" })
public void RTE_006_EmbedFile() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickEmbedFile();
Assertion.assertEquals(source.getSourceContent(), "[[File:Example.jpg]]");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject 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.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_002_verifyTOChideShowButtonsWorkForAnon.
/**
* 1. as anon open an article with TOC 3. verify TOC is collapsed 2. verify that show/hide buttons
* work
*/
@Test(groups = { "ArticleTOCTests", "ArticleTOCTests_002" })
public void ArticleTOCTests_002_verifyTOChideShowButtonsWorkForAnon() {
new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
ArticlePageObject article = new ArticlePageObject().open();
article.verifyTOCpresent();
article.verifyTOCcollapsed();
article.clickTOCshowHideButton();
article.verifyTOCexpanded();
article.clickTOCshowHideButton();
article.verifyTOCcollapsed();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_004_verifyTOCtakesAnonToSectionClicked.
/**
* 1. as anon open an article with TOC 2. user expands the TOC 3. user clicks on the first link in
* TOC 3. user view is sent to the chosen section
*/
@// QAART-262
Test(// QAART-262
enabled = false, groups = { "ArticleTOCTests", "ArticleTOCTests_004" })
public void ArticleTOCTests_004_verifyTOCtakesAnonToSectionClicked() {
new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
ArticlePageObject article = new ArticlePageObject().open();
article.verifyTOCpresent();
article.verifyTOCcollapsed();
article.clickTOCshowHideButton();
article.verifyTOCsectionLinkWorks(1);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject 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);
}
Aggregations