use of com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog in project selenium-tests by Wikia.
the class CommunityPageSalesPitchDialogTests method verifySalesPitchDialogNotDisplayedForLoggedUser.
@Execute(disableCommunityPageSalesPitchDialog = "false", asUser = User.USER)
public void verifySalesPitchDialogNotDisplayedForLoggedUser() {
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());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog in project selenium-tests by Wikia.
the class CommunityPageSalesPitchDialogTests method verifyDialogImageRedirectToSpecialCommunity.
@Execute(disableCommunityPageSalesPitchDialog = "false")
public void verifyDialogImageRedirectToSpecialCommunity() {
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().clickDialogImage().isCommunityPageOpen());
}
Aggregations