use of com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog 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.communitypage.SalesPitchDialog 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.communitypage.SalesPitchDialog 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.communitypage.SalesPitchDialog 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());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog in project selenium-tests by Wikia.
the class CommunityPageSalesPitchDialogTests method verifySalesPitchDialogIsNotShownIfCookieIsSet.
public void verifySalesPitchDialogIsNotShownIfCookieIsSet() {
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.assertFalse(new SalesPitchDialog().isDialogVisible());
}
Aggregations