use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject 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.article.editmode.VisualEditModePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class UserAndRights method unblockedUserCanEditUser.
@Test(groups = { "usersAndRights005" }, dependsOnMethods = { "staffCanUnblockUser" })
public void unblockedUserCanEditUser() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlocked, credentials.passwordBlocked, wikiURL);
String title = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject edit = base.navigateToArticleEditPage(wikiURL, PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp());
edit.clearContent();
edit.addContent(String.valueOf(DateTime.now().getMillis()));
edit.submitArticle().verifyArticleTitle(title);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class WikiActivityTests method WikiActivityTests_001_newEditionIsRecordedOnActivityModule.
/**
* https://wikia-inc.atlassian.net/browse/DAR-1617
*/
@Test(groups = "WikiActivity_001")
@Execute(asUser = User.USER)
public void WikiActivityTests_001_newEditionIsRecordedOnActivityModule() {
String articleContent = PageContent.ARTICLE_TEXT + DateTime.now().getMillis();
ArticlePageObject article = new ArticlePageObject().open("NewEditionIsRecordedOnActivityModule");
String articleName = article.getArticleName();
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.addContent(articleContent);
visualEditMode.submitArticle();
article.verifyContent(articleContent);
new SpecialWikiActivityPageObject(driver).open().verifyRecentEdition(articleName, credentials.userName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class BlogFeaturesTests method addingImage.
@Test(groups = { "BlogFeatures_005", "BlogFeaturesTests" })
@Execute(asUser = User.USER)
public void addingImage() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialCreatePage createPage = base.openSpecialCreateBlogPage(wikiURL);
String blogPostTitle = PageContent.BLOG_POST_NAME_PREFIX + createPage.getTimeStamp();
VisualEditModePageObject blogEdit = createPage.populateTitleField(blogPostTitle);
PhotoAddComponentObject photoAddPhoto = blogEdit.clickPhotoButton();
PhotoOptionsComponentObject photoOptions = photoAddPhoto.addPhotoFromWiki("image", 1);
photoOptions.setCaption(PageContent.CAPTION);
photoOptions.clickAddPhoto();
blogEdit.verifyPhoto();
BlogPageObject blogPage = blogEdit.submitBlog();
blogPage.verifyPhoto();
}
Aggregations