use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_004_SectionEditEntry.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_004", "sectionEditEntry" })
public void VEDisabledEditorEntryAnonTestsTests_004_SectionEditEntry() {
ArticlePageObject article = new ArticlePageObject().open(URLsContent.TESTINGPAGE);
VisualEditorPageObject ve = article.openVEModeWithSectionEditButton(0);
ve.verifyEditorSurfacePresent();
ve.verifyVEToolBarPresent();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VETemplateTests method VETemplateTests_002_SuggestedTemplate.
@RelatedIssue(issueID = "WW-108")
@Test(enabled = false, groups = { "VETemplate", "VETemplateTests_002", "VETemplateSuggestion" })
public void VETemplateTests_002_SuggestedTemplate() {
articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditorPageObject ve = base.openVEOnArticle(wikiURL, articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
VisualEditorInsertTemplateDialog templateDialog = (VisualEditorInsertTemplateDialog) ve.openDialogFromMenu(InsertDialog.TEMPLATE);
templateDialog.verifyNoResultTemplate();
templateDialog.verifyIsSuggestedTemplate();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VETemplateTests method VETemplateTests_005_DeleteTemplates.
@RelatedIssue(issueID = "WW-108")
@Test(enabled = false, groups = { "VETemplate", "VETemplateTests_005", "VEDeleteTemplate" }, dependsOnGroups = "VETemplateTests_004")
public void VETemplateTests_005_DeleteTemplates() {
VisualEditorPageObject ve = base.openVEOnArticle(wikiURL, articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
int numBlockTransclusion = ve.getNumberOfBlockTransclusion();
int numInlineTransclusion = ve.getNumberOfInlineTransclusion();
ve.deleteTransclusion(1, Transclusion.INLINE);
ve.verifyNumberOfBlockTransclusion(numBlockTransclusion);
ve.verifyNumberOfInlineTransclusion(--numInlineTransclusion);
VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
ArticlePageObject article = saveDialog.savePage();
article.verifyVEPublishComplete();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEVideoTests method resizeVideoWithHandle.
@Test(groups = { "VEVideo", "VEMediaResize" })
@Execute(asUser = User.USER_9)
public void resizeVideoWithHandle() {
String articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, articleName);
VisualEditorAddMediaDialog mediaDialog = ve.searchVideo("h");
ve = mediaDialog.addExistingMedia(1);
ve.verifyVideos(1);
Dimension source = ve.getVideoDimension();
ve.randomResizeOnMedia();
ve.verifyVideoResized(source);
ve.publish();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject in project selenium-tests by Wikia.
the class VEVideoTests method addNonPremiumVideo.
@Test(groups = { "VEVideo", "VEAddExternalVideo" })
@Execute(asUser = User.USER)
public void addNonPremiumVideo() {
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis());
VisualEditorPageObject veNew = ve.addVideoToContent(VideoContent.NON_PREMIUM_VIDEO_URL);
veNew.verifyVideos(1);
veNew.verifyVEToolBarPresent();
veNew.publish();
}
Aggregations