use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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.VisualEditModePageObject in project selenium-tests by Wikia.
the class VetModalCaptionTests method VetModalCaption_002_captionInModal.
@Test(groups = { "VetModalCaption_002" })
@Execute(asUser = User.USER)
public void VetModalCaption_002_captionInModal() {
String captionText = String.format("Caption-%d", DateTime.now().getMillis());
new ArticleContent().push(String.format("[[File:WikiEvolution - PoznaĆska Wiki|thumb|right|335 px|%s]]", captionText));
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) new VisualEditModePageObject().open().modifyComponent(Components.VIDEO);
vetOptions.verifyCaption(captionText);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class VetModalWidthTests method Vet_Modal_002_modalWidthOnEditing.
@Test(groups = { "VetModalwidth_002" }, dependsOnMethods = "Vet_Modal_001_modalWidth")
@Execute(asUser = User.USER)
public void Vet_Modal_002_modalWidthOnEditing() {
WikiBasePageObject base = new WikiBasePageObject();
VisualEditModePageObject visualEditModePageObject = base.navigateToArticleEditPage(wikiURL, articleTitle);
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
Assertion.assertEquals(vetOptions.getVideoWidth(), MODAL_WIDTH);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class VetModalAlignmentTests method Vet_Modal_002_leftInModal.
@Test(groups = { "VetModalAlignment_002" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_002_leftInModal() {
new ArticleContent().push("[[File:Batman_-_Following|thumb|left|335 px]]");
VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
vetOptions.verifyVideoAlignmentSelected(PositionsVideo.LEFT);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class VetModalAlignmentTests method Vet_Modal_004_centerInModal.
@Test(groups = { "VetModalAlignment_004" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_004_centerInModal() {
new ArticleContent().push("[[File:Batman_-_Following|thumb|center|335 px]]");
VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
vetOptions.verifyVideoAlignmentSelected(PositionsVideo.CENTER);
}
Aggregations