use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addSlideshow.
@Test(groups = { "ArticleFeaturesCRUDUser_003" })
@Execute(asUser = User.USER)
public void addSlideshow() {
new ArticleContent().clear();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
SlideshowBuilderComponentObject slideshowBuilder = visualEditMode.clickSlideshowButton();
AddPhotoComponentObject slideshowAddPhoto = slideshowBuilder.clickAddPhoto();
slideshowAddPhoto.search("image");
slideshowAddPhoto.choosePhotos(4);
slideshowAddPhoto.clickSelect();
slideshowBuilder.adjustPosition(Positions.CENTER);
slideshowBuilder.clickFinish();
visualEditMode.verifySlideshow();
visualEditMode.submitArticle().verifySlideshow();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifyImage.
@Test(groups = { "ArticleFeaturesCRUDUser_009", "Smoke4" })
@Execute(asUser = User.USER)
public void modifyImage() {
new ArticleContent().push("[[File:Image010.jpg|thumb|QAWebdriverCaption1]]");
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
visualEditMode.modifyComponent(Components.PHOTO);
PhotoOptionsComponentObject photoOptions = new PhotoOptionsComponentObject(driver);
photoOptions.setCaption(PageContent.CAPTION2);
photoOptions.clickAddPhoto();
visualEditMode.verifyPhoto();
visualEditMode.submitArticle().verifyPhoto();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifySlideshow.
@Test(groups = { "ArticleFeaturesCRUDUser_003" })
@Execute(asUser = User.USER)
public void modifySlideshow() {
new ArticleContent().push("<gallery type=\"slideshow\">\nImage010.jpg\nImage009.jpg\nImage008.jpg\nImage007.jpg\n" + "Image010.jpg\nImage009.jpg\nImage008.jpg\nImage007.jpg\nImage006.jpg\nImage005.jpg\n" + "Image004.jpg\nImage003.jpg\n</gallery>");
VisualEditModePageObject visualEditor = new VisualEditModePageObject().open();
SlideshowBuilderComponentObject slideshowBuilder = (SlideshowBuilderComponentObject) visualEditor.modifyComponent(Components.SLIDESHOW);
AddPhotoComponentObject slideshowAddPhoto = slideshowBuilder.clickAddPhoto();
slideshowAddPhoto.search("image");
slideshowAddPhoto.choosePhotos(8);
slideshowAddPhoto.clickSelect();
slideshowBuilder.adjustPosition(Positions.RIGHT);
slideshowBuilder.clickFinish();
visualEditor.verifySlideshow();
visualEditor.submitArticle().verifySlideshow();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_003_createWikiChangedDomain.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_003" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_003_createWikiChangedDomain() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = cnw1.getWikiName();
wikiDomain = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
cnw1.typeInWikiDomain(wikiDomain);
cnw1.verifyNextButtonEnabled();
CreateNewWikiPageObjectStep2 cnw2 = cnw1.submit();
cnw2.selectCategory(CreateWikiMessages.WIKI_CATEGORY_ID);
CreateNewWikiPageObjectStep3 cnw3 = cnw2.submit();
cnw3.selectThemeByName(CreateWikiMessages.WIKI_THEME);
ArticlePageObject article = cnw3.submit();
article.closeNewWikiCongratulationsLightBox();
article.verifyUserLoggedIn(User.USER_CNW.getUserName());
article.isStringInURL(wikiDomain);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreateWikiTests_loggedInUser method CreateNewWiki_005_createWikiPolicyViolation.
@Test(groups = { "CNW", "CreateNewWikiLoggedIn_005" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_005_createWikiPolicyViolation() {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
String wikiName = "1234";
cnw1.typeInWikiName(wikiName);
cnw1.verifyIncorrectWikiName();
}
Aggregations