use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_008_Math.
@Test(groups = { "RTE_extended_1", "RTE_extended_008" })
public void RTE_008_Math() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickMath();
Assertion.assertEquals(source.getSourceContent(), "<math>Insert formula here</math>");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class ImageServingTests method ImageServing_001_SpecialNewFilesTest.
@Test(groups = { "ImageServing_001", "ImageServing", "Smoke3" })
@Execute(asUser = User.USER)
public void ImageServing_001_SpecialNewFilesTest() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialNewFilesPage newFiles = base.openSpecialNewFiles(wikiURL);
newFiles.addPhoto();
newFiles.clickOnMoreOptions();
newFiles.checkIgnoreAnyWarnings();
newFiles.clickOnFewerOptions();
newFiles.selectFileToUpload(PageContent.FILE);
newFiles.clickUploadButton();
newFiles.verifyFileUploaded(PageContent.FILE);
String imageURL = newFiles.getImageUrl(PageContent.FILE);
newFiles.verifyURLStatus(200, imageURL);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class ImageServingTests method ImageServing_003_SpecialMultipleUploadTest.
@Test(groups = { "ImageServing_003", "ImageServing" })
@Execute(asUser = User.USER)
public void ImageServing_003_SpecialMultipleUploadTest() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialMultipleUploadPageObject wikiSpecialMU = base.openSpecialMultipleUpload(wikiURL);
wikiSpecialMU.selectFilesToUpload(PageContent.LIST_OF_FILES);
wikiSpecialMU.typeInMultiUploadSummary(PageContent.CAPTION);
wikiSpecialMU.checkIgnoreAnyWarnings();
wikiSpecialMU.clickUploadButton();
wikiSpecialMU.verifySuccessfulUpload(PageContent.LIST_OF_FILES);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class VetModalCaptionTests method VetModalCaption_005_videoNameNotEditable.
@Test(groups = { "VetModalCaption_005" })
@Execute(asUser = User.USER)
public void VetModalCaption_005_videoNameNotEditable() {
WikiBasePageObject base = new WikiBasePageObject();
articleTitleNotEditable = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visualEditMode = base.navigateToArticleEditPage(wikiURL, articleTitleNotEditable);
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 1);
vetOptions.verifyNameNotEditable();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class VetModalWidthTests method Vet_Modal_001_modalWidth.
@Test(groups = { "VetModalwidth_001" })
@Execute(asUser = User.USER)
public void Vet_Modal_001_modalWidth() {
WikiBasePageObject base = new WikiBasePageObject();
articleTitle = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visualEditMode = base.navigateToArticleEditPage(wikiURL, articleTitle);
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.adjustWith(MODAL_WIDTH);
vetOptions.submit();
Assertion.assertEquals(visualEditMode.getVideoWidth(), MODAL_WIDTH);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
Assertion.assertEquals(sourceEditMode.getVideoWidth(), MODAL_WIDTH);
PreviewEditModePageObject previewMode = sourceEditMode.previewArticle();
Assertion.assertEquals(previewMode.getVideoWidth(), MODAL_WIDTH);
previewMode.closePreviewModal();
ArticlePageObject article = sourceEditMode.submitArticle();
Assertion.assertEquals(article.getVideoThumbnailWidth(), MODAL_WIDTH);
}
Aggregations