Search in sources :

Example 1 with VideosModuleComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject in project selenium-tests by Wikia.

the class VideosModuleTests method VideosModuleTest_004.

/**
   * Checks if the Videos Module is not showing any duplicate videos
   */
@Test(groups = { "VideosModule", "VideosModuleTest_004", "Media" })
public void VideosModuleTest_004() {
    new ArticleContent().push(PageContent.ARTICLE_TEXT);
    new ArticlePageObject().open();
    new VideosModuleComponentObject(driver).verifyNoDuplicates();
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VideosModuleComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject) Test(org.testng.annotations.Test)

Example 2 with VideosModuleComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject in project selenium-tests by Wikia.

the class VideosModuleTests method visitorCanSeeVideosModuleOnArticleAndFilePages.

@Test(groups = { "VideosModule", "VideosModuleTest_001", "Media" })
public void visitorCanSeeVideosModuleOnArticleAndFilePages() {
    new ArticleContent().push(PageContent.ARTICLE_TEXT);
    VideosModuleComponentObject videosModule = new VideosModuleComponentObject(driver);
    new ArticlePageObject().open();
    videosModule.verifyVideosModuleShowing();
    new FilePage().open(VideoContent.YOUTUBE_VIDEO_URL2_FILENAME);
    videosModule.verifyVideosModuleShowing();
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) FilePage(com.wikia.webdriver.pageobjectsfactory.pageobject.special.filepage.FilePage) VideosModuleComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject) Test(org.testng.annotations.Test)

Example 3 with VideosModuleComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject in project selenium-tests by Wikia.

the class VideosModuleTests method VideosModuleTest_002.

/**
   * Checks if the Videos Module does not show up where it shouldn't. This checks the main page and
   * Special:WikiActivity, however the Videos Module shouldn't show up anywhere besides Article or
   * File pages. This is just a smoke test to make sure nothing is seriously wrong.
   */
@Test(groups = { "VideosModule", "VideosModuleTest_002", "Media" })
public void VideosModuleTest_002() {
    VideosModuleComponentObject videosModule = new VideosModuleComponentObject(driver);
    new MainPage(driver).open();
    videosModule.verifyVideosModuleNotShowing();
    new SpecialWikiActivityPageObject(driver).open();
    videosModule.verifyVideosModuleNotShowing();
}
Also used : SpecialWikiActivityPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject) VideosModuleComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject) MainPage(com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage) Test(org.testng.annotations.Test)

Example 4 with VideosModuleComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject in project selenium-tests by Wikia.

the class VideosModuleTests method VideosModuleTest_003.

/**
   * Checks if the Videos Module is showing the correct number of videos. Currently that amount is
   * between 3 and 5.
   */
@Test(groups = { "VideosModule", "VideosModuleTest_003", "Media" })
public void VideosModuleTest_003() {
    new ArticleContent().push(PageContent.ARTICLE_TEXT);
    new ArticlePageObject().open();
    new VideosModuleComponentObject(driver).verifyDisplayCount();
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VideosModuleComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject) Test(org.testng.annotations.Test)

Aggregations

VideosModuleComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.videosmodule.VideosModuleComponentObject)4 Test (org.testng.annotations.Test)4 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)3 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)3 MainPage (com.wikia.webdriver.pageobjectsfactory.pageobject.oasis.MainPage)1 SpecialWikiActivityPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject)1 FilePage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.filepage.FilePage)1