Search in sources :

Example 1 with Promoting

use of com.wikia.webdriver.elements.mercury.components.discussions.desktop.Promoting in project selenium-tests by Wikia.

the class PromotingTests method anonUserOnDesktopCanSeeAppPromotion.

/**
   * ANON ON DESKTOP SECTION
   */
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanSeeAppPromotion() {
    Promoting promoting = findPromoting();
    assertTrue(promoting.isAppleLinkDisplayed());
    assertTrue(promoting.isGooglePlayLinkDisplayed());
    assertEquals(promoting.getPromotionAppText(), DESKTOP_PROMOTION_TEXT);
}
Also used : Promoting(com.wikia.webdriver.elements.mercury.components.discussions.desktop.Promoting) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 2 with Promoting

use of com.wikia.webdriver.elements.mercury.components.discussions.desktop.Promoting in project selenium-tests by Wikia.

the class PromotingTests method anonUserOnMobileCanSeeAppPromotion.

/**
   * ANON ON MOBILE SECTION
   */
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void anonUserOnMobileCanSeeAppPromotion() {
    Promoting promoting = findPromoting();
    assertTrue(promoting.isMobileBannerDisplayed());
    assertStringContains(promoting.getPromotionAppMobileText(), MOBILE_PROMOTION_TEXT);
}
Also used : Promoting(com.wikia.webdriver.elements.mercury.components.discussions.desktop.Promoting) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Aggregations

InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)2 Promoting (com.wikia.webdriver.elements.mercury.components.discussions.desktop.Promoting)2