package com.wikia.webdriver.testcases.desktop.fandom;

import com.wikia.webdriver.common.core.Assertion;
import com.wikia.webdriver.common.templates.fandom.FandomTestTemplate;
import com.wikia.webdriver.elements.fandom.pages.HomePage;

import org.testng.annotations.Test;

@Test(groups = {"Fandom", "Fandom_HeroUnit"})
public class HeroUnitTest extends FandomTestTemplate {

  @Test
  public void anonCanSeeHeroUnit() {
    HomePage homePage = new HomePage().open();

    Assertion.assertTrue(homePage.getHeroBlock().isDisplayed(), "Hero block is not displayed");
  }

  @Test
  public void anonCanSeeFiveHeroUnits() {
    HomePage homePage = new HomePage().open();

    Assertion.assertTrue(homePage.getHeroBlock().hasFiveHeroUnits(),
                         "Hero block doesn't have five units."
    );
  }
}
