Search in sources :

Example 16 with VetOptionsComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.

the class VetModalWidthTests method Vet_Modal_002_modalWidthOnEditing.

@Test(groups = { "VetModalwidth_002" }, dependsOnMethods = "Vet_Modal_001_modalWidth")
@Execute(asUser = User.USER)
public void Vet_Modal_002_modalWidthOnEditing() {
    WikiBasePageObject base = new WikiBasePageObject();
    VisualEditModePageObject visualEditModePageObject = base.navigateToArticleEditPage(wikiURL, articleTitle);
    VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
    Assertion.assertEquals(vetOptions.getVideoWidth(), MODAL_WIDTH);
}
Also used : VetOptionsComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject) VisualEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 17 with VetOptionsComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.

the class VetModalAlignmentTests method Vet_Modal_002_leftInModal.

@Test(groups = { "VetModalAlignment_002" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_002_leftInModal() {
    new ArticleContent().push("[[File:Batman_-_Following|thumb|left|335 px]]");
    VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
    VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
    vetOptions.verifyVideoAlignmentSelected(PositionsVideo.LEFT);
}
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)

Example 18 with VetOptionsComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.

the class VetModalAlignmentTests method Vet_Modal_004_centerInModal.

@Test(groups = { "VetModalAlignment_004" })
@Execute(asUser = User.USER_VET_MODAL)
public void Vet_Modal_004_centerInModal() {
    new ArticleContent().push("[[File:Batman_-_Following|thumb|center|335 px]]");
    VisualEditModePageObject visualEditModePageObject = new ArticlePageObject().open().navigateToArticleEditPage();
    VetOptionsComponentObject vetOptions = (VetOptionsComponentObject) visualEditModePageObject.modifyComponent(Components.VIDEO);
    vetOptions.verifyVideoAlignmentSelected(PositionsVideo.CENTER);
}
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)

Example 19 with VetOptionsComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.

the class ArticleFeaturesCRUDTestsUser method addVideo.

@Test(groups = { "ArticleFeaturesCRUDUser_007", "Media" })
@Execute(asUser = User.USER)
public void addVideo() {
    new ArticleContent().clear();
    VisualEditModePageObject visualEditMode = new VisualEditModePageObject().open();
    VetAddVideoComponentObject vetAddVideo = visualEditMode.clickVideoButton();
    VetOptionsComponentObject vetOptions = vetAddVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL);
    vetOptions.setCaption(PageContent.CAPTION);
    vetOptions.submit();
    visualEditMode.verifyVideo();
    visualEditMode.submitArticle().verifyVideo();
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) 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 20 with VetOptionsComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject in project selenium-tests by Wikia.

the class VetAddingVideoTests method VetAddVideo_001_MessageWallProvider.

@Test(groups = { "VetAddVideo_001" })
@RelatedIssue(issueID = "QAART-889", comment = "test fails randomly")
@Execute(asUser = User.USER)
public void VetAddVideo_001_MessageWallProvider() {
    MessageWall wall = new MessageWall(driver).open(credentials.userName);
    String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
    String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
    MiniEditorComponentObject mini = wall.triggerMessageArea();
    wall.clickBoldButton();
    mini.switchAndWrite(message);
    wall.setTitle(title);
    VetAddVideoComponentObject vetAddingVideo = mini.clickAddVideo();
    VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByUrl(VideoContent.YOUTUBE_VIDEO_URL3);
    vetOptions.setCaption(PageContent.CAPTION);
    vetOptions.submit();
    mini.verifyVideoMiniEditor();
    wall.submit();
    wall.verifyPostedMessageVideo(title);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) VetOptionsComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject) VetAddVideoComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue)

Aggregations

VetOptionsComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject)24 Test (org.testng.annotations.Test)23 Execute (com.wikia.webdriver.common.core.annotations.Execute)22 VetAddVideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)18 VisualEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject)17 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)15 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)15 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)6 SourceEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject)6 PreviewEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.PreviewEditModePageObject)5 MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)3 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)2 MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)2 SpecialCreatePage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialCreatePage)1 BlogPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.blog.BlogPageObject)1