use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class VetModalAlignmentTests method Vet_Modal_003_centerOnPage.
@Test(groups = { "VetModalAlignment_003" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_003_centerOnPage() {
new ArticleContent().push();
VisualEditModePageObject visualEditMode = new ArticlePageObject().open().navigateToArticleEditPage();
VetAddVideoComponentObject vetAddingVideo = visualEditMode.clickVideoButton();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
vetOptions.adjustPosition(PositionsVideo.CENTER);
vetOptions.submit();
visualEditMode.verifyVideoPosition(PositionsVideo.CENTER);
SourceEditModePageObject sourceEditMode = visualEditMode.clickSourceButton();
sourceEditMode.verifySourceModeEnabled();
sourceEditMode.verifyVideoAlignment(PositionsVideo.CENTER);
PreviewEditModePageObject previewMode = sourceEditMode.previewArticle();
previewMode.verifyVideoAlignment(PositionsVideo.CENTER);
previewMode.closePreviewModal();
ArticlePageObject article = sourceEditMode.submitArticle();
article.verifyVideoAlignment(PositionsVideo.CENTER);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_002_VerifyEmbedMapElements.
@Test(groups = { "EmbedMapTests_002", "EmbedMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
public void EmbedMapTests_002_VerifyEmbedMapElements() {
ArticlePageObject article = new ArticlePageObject();
article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
embedMapDialog.verifyEmbedMapModalOpened();
embedMapDialog.verifyMapTitlePresented();
embedMapDialog.verifyCloseButtonPresented();
embedMapDialog.verifyMapElementsPresented();
embedMapDialog.verifyBrandFooterNotVisible();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_006_VerifyEmbeddedMapAddPinType.
@Test(enabled = false, groups = { "EmbedMapTests_006", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_006_VerifyEmbeddedMapAddPinType() {
WikiBasePageObject base = new WikiBasePageObject();
ArticlePageObject article = new ArticlePageObject();
article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
CreatePinTypesComponentObject pinTypesDialog = embedMapDialog.clickEditPinTypesButton();
pinTypesDialog.verifyPinTypesDialog();
pinTypesDialog.deletePinTypes();
pinTypesDialog.typeManyPinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, 4);
pinTypesDialog.clickSave();
embedMapDialog.verifyPinTypeExists(InteractiveMapsContent.PIN_TYPE_NAME);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class VetArticlePlaceholderTests method userCanAddVideoFromWikiaUsingPlaceholderInEditMode.
@Test(groups = { "VideoArticlePlacehoder_004" })
@Execute(asUser = User.STAFF, onWikia = "mobileregressiontesting")
public void userCanAddVideoFromWikiaUsingPlaceholderInEditMode() {
new ArticleContent().push(SourceModeContent.PLACEHOLDERS);
// Added cause of MAIN-6374 issue
new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
VetAddVideoComponentObject vetAddingVideo = (VetAddVideoComponentObject) visualEditMode.modifyComponent(Components.VIDEO_PLACEHOLDER);
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 0);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
visualEditMode.verifyVideo();
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class VEImageTests method changeImageAlignment.
@Test(groups = { "VEImageTests", "VEMediaSetting" })
@Execute(asUser = User.USER_9)
public void changeImageAlignment() {
int numOfMedia = 3;
List<String> wikiTexts = new ArrayList<String>();
wikiTexts.add("|centre");
wikiTexts.add("|left");
String randomArticleName = PageContent.ARTICLE_NAME_PREFIX + new VisualEditorPageObject().getTimeStamp();
VisualEditorPageObject veCreatePage = new VisualEditorPageObject().openVEOnArticle(wikiURL, randomArticleName);
VisualEditorAddMediaDialog mediaDialog = veCreatePage.searchImage("h");
veCreatePage = mediaDialog.addExistingMedia(numOfMedia);
veCreatePage.verifyMedias(numOfMedia);
veCreatePage.clickPublishButton();
new VisualEditorSaveChangesDialog(this.driver).savePage();
veCreatePage.waitForPageLoad();
ArticlePageObject article = new ArticlePageObject();
article.openVEModeWithMainEditButton();
VisualEditorPageObject ve = new VisualEditorPageObject();
ve.alignMedia(2, Alignment.LEFT);
ve.alignMedia(0, Alignment.CENTER);
ve.verifyEditorSurfacePresent();
ve.verifyVEToolBarPresent();
VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
VisualEditorReviewChangesDialog reviewDialog = saveDialog.clickReviewYourChanges();
reviewDialog.verifyAddedDiffs(wikiTexts);
saveDialog = reviewDialog.clickReturnToSaveFormButton();
saveDialog.savePage();
article.verifyVEPublishComplete();
}
Aggregations