use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class SpecialCommunityPageTests method verifyAnonEditingFlow.
@Execute(onWikia = "mediawiki119", asUser = User.ANONYMOUS, mockAds = "true")
public void verifyAnonEditingFlow() {
SpecialCommunity page = new SpecialCommunity();
WebElement link = page.getLinkFromCards();
String url = getEditUrl(link.getText(), "veaction=edit");
link.click();
Assertion.assertEquals(url, page.getCurrentUrl());
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreateWikiTests_lang method CreateNewWiki_lang_TC001.
@Test(dataProviderClass = CreateNewWikiDataProvider.class, dataProvider = "getLangs", groups = { "CreateNewWiki_lang_001", "CNW_lang_first" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_lang_TC001(String lang) {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
cnw1.selectLanguage(lang);
String wikiName = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
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.verifyWikiTitleOnCongratualtionsLightBox(wikiName);
article.closeNewWikiCongratulationsLightBox();
article.verifyWikiTitleHeader(wikiName);
article.verifyUserLoggedIn(User.USER_CNW.getUserName());
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CategoriesTests method discussionsAdministratorOnMobileCanNotEditGeneralCategory.
// Discussions Administrator on mobile
@Test(groups = { MOBILE })
@Execute(asUser = User.DISCUSSIONS_ADMINISTRATOR, onWikia = MercuryWikis.DISCUSSIONS_MOBILE)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void discussionsAdministratorOnMobileCanNotEditGeneralCategory() {
CategoryPill.Data postCategory = setUp(MercuryWikis.DISCUSSIONS_MOBILE);
final PostsListPage page = new PostsListPage().open(siteId);
final CategoriesFieldset categoriesFieldset = page.getFiltersPopOver().click().getCategoriesFieldset();
try {
assertTrue(categoriesFieldset.canEdit(), SHOULD_EDIT_CATEGORIES_MESSAGE);
assertFalse(categoriesFieldset.clickEdit().canEditGeneralCategory(), GENERAL_CATEGORY_SHOULD_BE_NOT_EDITABLE_MESSAGE);
} finally {
cleanUp(postCategory);
}
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreatingPostTests method userOnMobileCannotSavePostWithoutCategoryAndDescription.
/*
* LOGGED-IN USERS ON MOBILE SECTION
*/
@Test(groups = MOBILE)
@Execute(asUser = User.USER, onWikia = MercuryWikis.DISCUSSIONS_2)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCannotSavePostWithoutCategoryAndDescription() {
PostsListPage page = new PostsListPage().open();
PostsCreator postsCreator = page.getPostsCreatorMobile();
assertThatPostWithoutSelectedCategoryAndDescriptionCannotBeAdded(postsCreator);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class CreatingPostTests method userOnDesktopCannotAddPostWithoutTitle.
@Test(groups = DESKTOP)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCannotAddPostWithoutTitle() throws MalformedURLException {
String description = TextGenerator.createUniqueText();
PostsListPage page = new PostsListPage().open();
PostsCreator postsCreator = page.getPostsCreatorDesktop();
fillPostCategoryWith(postsCreator, description);
Assertion.assertFalse(postsCreator.isPostButtonActive());
}
Aggregations