use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class BlogTests method BlogTests_001_addFromProfile.
@Test(groups = { "BlogTests_001", "BlogTests", "Smoke1" })
public void BlogTests_001_addFromProfile() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName4, credentials.password4, wikiURL);
String blogTitle = PageContent.BLOG_POST_NAME_PREFIX + base.getTimeStamp();
String blogContent = PageContent.BLOG_CONTENT + base.getTimeStamp();
UserProfilePageObject userProfile = base.openProfilePage(credentials.userName4, wikiURL);
userProfile.clickOnBlogTab();
SpecialCreatePage createBlogPage = userProfile.clickOnCreateBlogPost();
VisualEditModePageObject visualEditMode = createBlogPage.populateTitleField(blogTitle);
visualEditMode.addContent(blogContent);
BlogPageObject blogPage = visualEditMode.submitBlog();
blogPage.verifyBlogTitle(blogTitle);
blogPage.verifyContent(blogContent);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ForcedLoginTests method anonCanLogInViaAuthModalWhenAddingPhoto.
@Test(groups = "ForcedLogin_anonCanLogInViaAuthModalWhenAddingPhoto")
public void anonCanLogInViaAuthModalWhenAddingPhoto() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject edit = base.navigateToArticleEditPage(wikiURL, articleName);
edit.clickPhotoButton();
DetachedSignInPage authModal = new DetachedRegisterPage().navigateToSignIn();
authModal.login(credentials.userName10, credentials.password10);
edit.verifyUserLoggedIn(credentials.userName10);
assertTrue(edit.isStringInURL(articleName));
assertTrue(edit.isStringInURL(URLsContent.ACTION_EDIT));
PhotoAddComponentObject addPhoto = edit.clickPhotoButton();
addPhoto.verifyAddPhotoModal();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifyVideo.
@Test(groups = { "ArticleFeaturesCRUDUser_007", "Media" })
@Execute(asUser = User.USER)
public void modifyVideo() {
new ArticleContent().push("[[File:Wikia University - How to Contact Wikia|thumb|right|335 px|QAWebdriverCaption]]");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditMode.modifyComponent(Components.VIDEO);
vetOptions.setCaption(PageContent.CAPTION2);
vetOptions.update();
visualEditMode.verifyVideo();
visualEditMode.submitArticle().verifyVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method deleteSlider.
@Test(groups = { "ArticleFeaturesCRUDUser_006" })
@Execute(asUser = User.USER)
public void deleteSlider() {
new ArticleContent().push("<gallery type=\"slider\" orientation=\"right\">\nImage010.jpg\n" + "Image009.jpg\nImage008.jpg\nImage007.jpg\n</gallery>");
VisualEditModePageObject visualEditor = new VisualEditModePageObject().open();
visualEditor.removeComponent(Components.SLIDER);
visualEditor.verifyComponentRemoved(Components.SLIDER);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class CategoriesTestsEditMode method CategoriesTestsArticleEdit_003_anonSuggestions.
@Test(groups = { "CategoriesTestsArticleEdit_003", "CategoriesTestsArticleEditMode" })
public void CategoriesTestsArticleEdit_003_anonSuggestions() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visual = base.navigateToArticleEditPage(wikiURL, articleName);
visual.typeCategoryName(PageContent.CATEGORY_NAME_PREFIX);
visual.triggerCategorySuggestions();
String categoryName = visual.selectCategorySuggestions(1);
visual.verifyCategoryPresent(categoryName);
}
Aggregations