use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_019_MoreSympolsTools.
@Test(groups = { "RTE_extended_4", "RTE_extended_019" })
public void RTE_019_MoreSympolsTools() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.checkSymbolsTools();
source.submitArticle();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_002_Italic.
@Test(groups = { "RTE_extended_1", "RTE_extended_002" })
public void RTE_002_Italic() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickItalic();
Assertion.assertEquals(source.getSourceContent(), "''Italic text''");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_001_CreateArticleWithTOCasAnon.
/**
* 1. as anon create an article with TOC 2. verify TOC is present on the article
*/
@Test(groups = { "ArticleTOCTests", "ArticleTOCTests_001" })
public void ArticleTOCTests_001_CreateArticleWithTOCasAnon() {
WikiBasePageObject base = new WikiBasePageObject();
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
SpecialCreatePage specialCreatePage = new SpecialCreatePage().open();
VisualEditModePageObject visualEditMode = specialCreatePage.populateTitleField(articleTitle);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
sourceEditMode.addTOC();
ArticlePageObject article = sourceEditMode.submitArticle();
article.verifyTOCpresent();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class VetModalCaptionTests method VetModalCaption_001_modalCaption.
@Test(groups = { "VetModalCaption_001" })
@Execute(asUser = User.USER)
public void VetModalCaption_001_modalCaption() {
WikiBasePageObject base = new WikiBasePageObject();
articleTitleCaption = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visualEditMode = base.navigateToArticleEditPage(wikiURL, articleTitleCaption);
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
caption = PageContent.CAPTION + vetOptions.getTimeStamp();
vetOptions.setCaption(caption);
vetOptions.submit();
Assertion.assertEquals(visualEditMode.getVideoCaption(), caption);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
Assertion.assertTrue(sourceEditMode.getContent().contains(caption));
PreviewEditModePageObject previewMode = sourceEditMode.previewArticle();
Assertion.assertEquals(previewMode.getVideoCaption(), caption);
previewMode.closePreviewModal();
ArticlePageObject article = sourceEditMode.submitArticle();
Assertion.assertEquals(article.getVideoCaption(), caption);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class RTEDisabledEditorEntryAnonTests method RTEDisabledEditorEntryAnonTests_009_actionEdit.
@Test(groups = { "RTEDisabledEditorEntryAnonTests", "RTEDisabledEditorEntryAnonTests_009", "actionURLEntry" })
public void RTEDisabledEditorEntryAnonTests_009_actionEdit() {
SourceEditModePageObject src = base.navigateToArticleEditPageSrc(wikiURL, base.getNameForArticle());
src.verifySourceOnlyMode();
}
Aggregations