Search in sources :

Example 1 with SalesPitchDialog

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());
}
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 2 with SalesPitchDialog

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());
}
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 3 with SalesPitchDialog

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());
}
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 4 with SalesPitchDialog

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());
}
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 5 with SalesPitchDialog

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

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