Search in sources :

Example 71 with ArticlePageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.

the class ArticleTOCTests method ArticleTOCTests_007_verifyTOCtakesLoggedInUserToSectionClicked.

/**
   * 1. as logged in user open an article with TOC 2. user clicks on the first link in TOC 3. user
   * view is sent to the chosen section
   */
@// QAART-262
Test(// QAART-262
enabled = false, groups = { "ArticleTOCTests", "ArticleTOCTests_007" })
@Execute(asUser = User.USER_12)
public void ArticleTOCTests_007_verifyTOCtakesLoggedInUserToSectionClicked() {
    new ArticleContent().push(PageContent.ARTICLE_WITH_TOC_LINES);
    ArticlePageObject article = new ArticlePageObject().open();
    article.verifyTOCpresent();
    article.verifyTOCexpanded();
    article.verifyTOCsectionLinkWorks(1);
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 72 with ArticlePageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.

the class PlayingVideoTests method PlayingVideoTests_002_ooyala.

@Test(groups = { "Media", "ProviderTests", "PlayingVideoTests", "PlayingVideoTests_002" })
@Execute(onWikia = "sktest123", disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void PlayingVideoTests_002_ooyala() {
    String articleName = "VideoOoyalaAgegateInline";
    ArticlePageObject article = new ArticlePageObject().open(articleName);
    article.verifyVideo();
    VideoComponentObject video = article.clickThumbnailVideoInline();
    video.verifyVideoEmbedWidth();
    video.verifyVideoOoyalaAgeGate();
    video.verifyVideoObjectVisible();
    video.verifyVideoOoyalaEmbed();
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.media.VideoComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 73 with ArticlePageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.

the class VetProvidersTests method VetProvidersTests_001_article.

@Execute(asUser = User.USER)
@Test(dataProviderClass = VideoUrlProvider.class, dataProvider = "videoUrl")
public void VetProvidersTests_001_article(String videoUrl, String videoName) {
    new ArticleContent().clear();
    PageObjectLogging.log("", videoUrl, true);
    VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
    VetAddVideoComponentObject vetAddVideo = visualEditMode.clickVideoButton();
    VetOptionsComponentObject vetOptions = vetAddVideo.addVideoByUrl(videoUrl);
    vetOptions.submit();
    visualEditMode.verifyVideo();
    ArticlePageObject article = visualEditMode.submitArticle();
    article.verifyVideo();
    article.verifyVideoName(videoName);
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VetOptionsComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject) VisualEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject) VetAddVideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 74 with ArticlePageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.

the class VideoSuggestionsTests method Vet_Tests_001_VerifyVideoSuggestionsIsDisplayed.

@Test(groups = { "VideoSuggestions_001" })
@Execute(onWikia = "callofduty", asUser = User.USER)
public void Vet_Tests_001_VerifyVideoSuggestionsIsDisplayed() {
    VisualEditModePageObject ck = new ArticlePageObject().open("Frank_Woods").navigateToArticleEditPage();
    Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
    VetAddVideoComponentObject vetAddingVideo = ck.clickVideoButton();
    Assertion.assertTrue(vetAddingVideo.areSuggestionsDisplayed(), "Video suggestions are not displayed");
}
Also used : ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VisualEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject) VetAddVideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 75 with ArticlePageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject in project selenium-tests by Wikia.

the class VetModalAlignmentTests method Vet_Modal_006_rightInModal.

@Test(groups = { "VetModalAlignment_006" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_006_rightInModal() {
    new ArticleContent().push("[[File:Batman_-_Following|thumb|right|335 px]]");
    VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
    VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
    vetOptions.verifyVideoAlignmentSelected(PositionsVideo.RIGHT);
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) VetOptionsComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject) VisualEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)181 Test (org.testng.annotations.Test)169 Execute (com.wikia.webdriver.common.core.annotations.Execute)68 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)51 VisualEditorPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject)44 VisualEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject)41 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)39 SourceEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject)35 VisualEditorSaveChangesDialog (com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorSaveChangesDialog)16 VetOptionsComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject)15 VetAddVideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)14 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)11 VisualEditorReviewChangesDialog (com.wikia.webdriver.pageobjectsfactory.componentobject.visualeditordialogs.VisualEditorReviewChangesDialog)9 PreviewEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.PreviewEditModePageObject)7 SalesPitchDialog (com.wikia.webdriver.pageobjectsfactory.pageobject.communitypage.SalesPitchDialog)7 Notification (com.wikia.webdriver.elements.oasis.components.notifications.Notification)6 MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)6 ArticlePurger (com.wikia.webdriver.common.core.helpers.ArticlePurger)5 EmbedMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.EmbedMapComponentObject)5 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)4