use of com.wikia.webdriver.common.core.annotations.Execute 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.common.core.annotations.Execute 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.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_012_Photo.
@Test(groups = { "RTE_extended_2", "RTE_extended_012" })
@Execute(onWikia = "seleniumtests")
public void RTE_012_Photo() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(User.STAFF);
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
PhotoAddComponentObject photoAddPhoto = source.clickAddPhoto();
PhotoOptionsComponentObject photoOptions = photoAddPhoto.addPhotoFromWiki(PageContent.FILE);
photoOptions.setCaption(PageContent.CAPTION);
photoOptions.clickAddPhoto();
String photoName = photoAddPhoto.getPhotoName();
Assertion.assertEquals(source.getSourceContent(), String.format(PageContent.WIKI_TEXT_PHOTO.replace("%photoName%", photoName), PageContent.CAPTION));
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleTOCTests method ArticleTOCTests_007_verifyTOCtakesLoggedInUserToSectionClicked.
/**
* 1. as logged in user open an article with TOC 2. user clicks on the first link in TOC 3. user
* view is sent to the chosen section
*/
@// QAART-262
Test(// QAART-262
enabled = false, groups = { "ArticleTOCTests", "ArticleTOCTests_007" })
@Execute(asUser = User.USER_12)
public void ArticleTOCTests_007_verifyTOCtakesLoggedInUserToSectionClicked() {
new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
ArticlePageObject article = new ArticlePageObject().open();
article.verifyTOCpresent();
article.verifyTOCexpanded();
article.verifyTOCsectionLinkWorks(1);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class GuidelinesTests method regularUserOnDesktopCanSeeGuidelinesHeroUnit.
@Test(groups = "discussions-regularUserOnDesktopCanSeeGuidelinesHeroUnit")
@Execute(asUser = User.USER_6)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void regularUserOnDesktopCanSeeGuidelinesHeroUnit() {
GuidelinesPage guidelinesPage = new GuidelinesPage();
guidelinesPage.open();
Assertion.assertTrue(guidelinesPage.isGuidelinesHeroUnitDisplayed());
}
Aggregations