use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class CommunityPageSalesPitchDialogTests method verifySalesPitchDialogDisplayedOnlyOnFourthPageview.
@Execute(disableCommunityPageSalesPitchDialog = "false")
public void verifySalesPitchDialogDisplayedOnlyOnFourthPageview() {
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + ArticlePageObject.getTimeStamp();
ArticlePageObject article = new ArticlePageObject();
// 2nd pageview
article.open(articleTitle);
// 3rd pageview
article.open(articleTitle);
// 4th pageview
article.open(articleTitle);
Assertion.assertTrue(new SalesPitchDialog().isDialogVisible());
// 5th pageview
article.open(articleTitle);
Assertion.assertFalse(new SalesPitchDialog().isDialogVisible());
// 6th pageview
article.open(articleTitle);
Assertion.assertFalse(new SalesPitchDialog().isDialogVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class CommunityPageSalesPitchDialogTests method verifyClickHelpOutButtonRedirectToSpecialCommunity.
@Execute(disableCommunityPageSalesPitchDialog = "false")
public void verifyClickHelpOutButtonRedirectToSpecialCommunity() {
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + ArticlePageObject.getTimeStamp();
ArticlePageObject article = new ArticlePageObject();
// 2nd pageview
article.open(articleTitle);
// 3rd pageview
article.open(articleTitle);
// 4th pageview
article.open(articleTitle);
Assertion.assertTrue(new SalesPitchDialog().clickHelpOutButton().isCommunityPageOpen());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject 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.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class CommunityPageSalesPitchDialogTests method verifyEditPageIsNotCountedAsPageview.
@Execute(disableCommunityPageSalesPitchDialog = "false")
public void verifyEditPageIsNotCountedAsPageview() {
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + ArticlePageObject.getTimeStamp();
ArticlePageObject article = new ArticlePageObject();
// 2nd pageview
article.open(articleTitle);
article.navigateToArticleEditPage();
// 3rd pageview
article.open(articleTitle);
article.navigateToArticleEditPage();
// 4th pageview
article.open(articleTitle);
Assertion.assertTrue(new SalesPitchDialog().isDialogVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.
the class CommunityPageSalesPitchDialogTests method verifyDialogContentRedirectToSpecialCommunity.
@Execute(disableCommunityPageSalesPitchDialog = "false")
public void verifyDialogContentRedirectToSpecialCommunity() {
String articleTitle = PageContent.ARTICLE_NAME_PREFIX + ArticlePageObject.getTimeStamp();
ArticlePageObject article = new ArticlePageObject();
// 2nd pageview
article.open(articleTitle);
// 3rd pageview
article.open(articleTitle);
// 4th pageview
article.open(articleTitle);
Assertion.assertTrue(new SalesPitchDialog().clickDialogContent().isCommunityPageOpen());
}
Aggregations