Search in sources :

Example 6 with SalesPitchDialog

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());
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) SalesPitchDialog(com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog) Execute(com.wikia.webdriver.common.core.annotations.Execute)

Example 7 with SalesPitchDialog

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());
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) SalesPitchDialog(com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog) Execute(com.wikia.webdriver.common.core.annotations.Execute)

Aggregations

ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)7 SalesPitchDialog (com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog)7 Execute (com.wikia.webdriver.common.core.annotations.Execute)6