use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_003_addDropdown.
@Test(groups = { "ArticleCRUDUser_003", "Smoke1" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_003_addDropdown() {
new ArticleContent().clear();
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
ArticlePageObject article = new ArticlePageObject().open(TestContext.getCurrentMethodName() + "?AbTest.ADD_NEW_PAGE=CONTROL1");
VisualEditModePageObject visualEditMode = article.createArticleInCKUsingDropdown(articleTitle);
visualEditMode.addContent(articleContent);
visualEditMode.submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_002_addByURL.
@Test(groups = { "ArticleCRUDUser_002" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_002_addByURL() {
String articleContent = PageContent.ARTICLE_TEXT;
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open(articleTitle);
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(articleTitle);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleCRUDUserTests method ArticleCRUDUser_004_differentTitles.
@Test(dataProviderClass = ArticleDataProvider.class, dataProvider = "articleTitles", groups = { "ArticleCRUDUser_004" })
@Execute(asUser = User.USER)
public void ArticleCRUDUser_004_differentTitles(String articleTitle) {
String articleContent = PageContent.ARTICLE_TEXT;
String randomArticleTitle = articleTitle + DateTime.now().getMillis();
VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open(randomArticleTitle);
visualEditMode.addContent(articleContent);
ArticlePageObject article = visualEditMode.submitArticle();
article.verifyContent(articleContent);
article.verifyArticleTitle(randomArticleTitle);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ArticleEditDropdownTests method ArticleEditDropdown_002_user.
@Test(groups = { "ArticleEditDropdown_002" })
@Execute(asUser = User.USER)
public void ArticleEditDropdown_002_user() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
article.verifyDropdownForUser();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class TestCorrelatorDFP method correlatorIDInQueryStringShouldBeTheSameMercury.
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
@Test(groups = "DFPCorrelatorMercury")
@NetworkTrafficDump
@Execute(onWikia = "project43")
public void correlatorIDInQueryStringShouldBeTheSameMercury() {
networkTrafficInterceptor.startIntercepting("DFPCorrelator");
new HomePage().open();
networkTrafficInterceptor.logDFP(correlatorMobile);
}
Aggregations