use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class TestCorrelatorDFP method correlatorIDInQueryStringShouldBeTheSameOasis.
@Test(groups = "DFPCorrelatorOasis")
@NetworkTrafficDump
@Execute(onWikia = "project43")
public void correlatorIDInQueryStringShouldBeTheSameOasis() {
networkTrafficInterceptor.startIntercepting("DFPCorrelator");
new HomePage().open();
networkTrafficInterceptor.logDFP(correlatorDesktop);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addingTable.
@Test(dataProviderClass = ArticleFeaturesCRUDDataProvider.class, dataProvider = "getTableProperties", groups = { "ArticleFeaturesCRUDUser_011" })
@Execute(asUser = User.USER)
public void addingTable(int border, int width, int height, int cellspacing, int cellpadding, Alignment alignment) {
new ArticleContent().clear();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
TableBuilderComponentObject addTable = visualEditMode.clickAddTableButton();
addTable.verifyAddTableLightbox();
addTable.typeAmountOfRows(3);
addTable.typeAmountOfColumns(2);
addTable.selectHeader(Headers.FIRSTCOLUMN);
addTable.typeBorderSize(border);
addTable.selectAlignment(alignment);
addTable.typeWidth(width);
addTable.typeHeight(height);
addTable.typeCellSpacing(cellspacing);
addTable.typeCellPadding(cellpadding);
addTable.submitTable();
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyTableBorder(border);
article.verifyTableCellspacing(cellspacing);
article.verifyTableCellpadding(cellpadding);
article.verifyTableAlignment(alignment);
article.verifyTableSize(width, height);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method modifySlider.
@Test(groups = { "ArticleFeaturesCRUDUser_005" })
@Execute(asUser = User.USER)
public void modifySlider() {
new ArticleContent().push("<gallery type=\"slider\" orientation=\"right\">\nImage010.jpg\n" + "Image009.jpg\nImage008.jpg\nImage007.jpg\n</gallery>");
VisualEditModePageObject visualEditor = new VisualEditModePageObject().open();
SliderBuilderComponentObject sliderBuilder = (SliderBuilderComponentObject) visualEditor.modifyComponent(Components.SLIDER);
sliderBuilder.selectMenuPosition(MenuPositions.HORIZONTAL);
AddPhotoComponentObject sliderAddPhoto = sliderBuilder.clickAddPhoto();
sliderAddPhoto.search("image");
sliderAddPhoto.choosePhotos(8);
sliderAddPhoto.clickSelect();
sliderBuilder.clickFinish();
visualEditor.verifySlider();
visualEditor.submitArticle().verifySlider();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsUser method addingImagePlaceholder.
@Test(groups = { "ArticleFeaturesCRUDUser_014" })
@Execute(asUser = User.USER)
public void addingImagePlaceholder() {
new ArticleContent().clear();
new ArticlePageObject().open();
VisualEditModePageObject visualEditMode = new WikiBasePageObject().goToArticleDefaultContentEditPage(wikiURL, TestContext.getCurrentMethodName());
ArticlePageObject article = visualEditMode.submitArticle();
PhotoAddComponentObject photoAddPhoto = article.clickAddImagePlaceholder();
PhotoOptionsComponentObject photoOptions = photoAddPhoto.addPhotoFromWiki("image", 2);
photoOptions.setCaption(PageContent.CAPTION);
photoOptions.clickAddPhoto();
article.verifyPhoto();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class TestNoAdsForUsers method noAdsForUsers.
@Test(dataProviderClass = AdsDataProvider.class, dataProvider = "noAdsForUsers", groups = "NoAdsForUsers")
@Execute(asUser = User.USER)
public void noAdsForUsers(String wikiName, String path) {
String testedPage = urlBuilder.getUrlForPath(wikiName, path);
AdsBaseObject wikiPage = new AdsBaseObject(driver, testedPage);
wikiPage.verifyNoAdsOnPage();
}
Aggregations