Search in sources :

Example 26 with MessageWall

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.

the class MessageWallTests method CreatingMessageWithUnclosedTagDoesNotShowAvatar.

/**
   * DAR-985 bug prevention test case details fogbugz: https://wikia.fogbugz.com/default.asp?31293,
   * details jira: https://wikia-inc.atlassian.net/browse/DAR-985 1. Go to a messageWall and add
   * unClosedDivComment 2. refresh the page 3. make sure that reply area avatar doesn't appear by
   * default
   */
@Test(groups = { "MessageWall_007", "MeArticleTOCTestsArticleTOCTestsssageWall", "MessageWallTests" })
@Execute(asUser = User.USER)
public void CreatingMessageWithUnclosedTagDoesNotShowAvatar() {
    MessageWall wall = new MessageWall(driver).open(User.USER_11.getUserName());
    wall.triggerMessageArea();
    String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
    wall.clickSourceModeButton();
    wall.writeSourceMode(SourceModeContent.UNCLOSED_DIV_COMMENT);
    wall.setTitle(title);
    wall.submit();
    wall.verifyMessageTitle(title);
    wall.refreshPage();
    wall.verifyReplyAreaAvatarNotVisible();
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 27 with MessageWall

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.

the class MessageWallTests method userCanCreateAndPreviewMessage.

@Test(groups = { "MessageWall_005", "MessageWall", "MessageWallTests" })
@Execute(asUser = User.USER)
public void userCanCreateAndPreviewMessage() {
    MessageWall wall = new MessageWall(driver).open(User.USER.getUserName());
    MiniEditorComponentObject mini = wall.triggerMessageArea();
    String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
    String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
    mini.switchAndWrite(message);
    wall.setTitle(title);
    MiniEditorPreviewComponentObject preview = wall.preview();
    preview.verifyTextContent(message);
    preview.publish();
    wall.verifyMessageText(title, message, User.USER.getUserName());
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) MiniEditorPreviewComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorPreviewComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 28 with MessageWall

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.

the class MessageWallTests method userCanCreateAndRemoveMessage.

@Test(groups = { "MessageWall_002", "MessageWall", "MessageWallTests" })
@Execute(asUser = User.USER)
public void userCanCreateAndRemoveMessage() {
    MessageWall wall = new MessageWall(driver).open(User.USER.getUserName());
    MiniEditorComponentObject mini = wall.triggerMessageArea();
    String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
    String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
    mini.switchAndWrite(message);
    wall.setTitle(title);
    wall.submit();
    wall.verifyMessageText(title, message, User.USER.getUserName());
    MessageWallCloseRemoveThreadPageObject remove = wall.clickRemoveThread();
    remove.closeRemoveThread("adss");
    wall.verifyThreadRemoved();
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) MessageWallCloseRemoveThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallCloseRemoveThreadPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 29 with MessageWall

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.

the class MessageWallTests method userCanCreateAndEditMessage.

@Test(groups = { "MessageWall_001", "MessageWall", "MessageWallTests", "Smoke3" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "SUS-801", comment = "The issue might be the reason for 25% failures of this test")
public void userCanCreateAndEditMessage() {
    MessageWall wall = new MessageWall(driver).open(User.USER.getUserName());
    MiniEditorComponentObject mini = wall.triggerMessageArea();
    String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
    String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
    mini.switchAndWrite(message);
    wall.setTitle(title);
    wall.submit();
    wall.verifyMessageText(title, message, User.USER.getUserName());
    wall.triggerEditMessageArea();
    String messageEdit = PageContent.MESSAGE_WALL_MESSAGE_EDIT_PREFIX + wall.getTimeStamp();
    mini.switchAndEditMessageWall(messageEdit);
    wall.submitEdition();
    wall.verifyMessageEditText(title, messageEdit, User.USER.getUserName());
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue)

Example 30 with MessageWall

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall 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

MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)30 Test (org.testng.annotations.Test)30 MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)22 Execute (com.wikia.webdriver.common.core.annotations.Execute)17 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)12 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)4 VetAddVideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)2 VetOptionsComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject)2 MessageWallAddLinkComponentObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallAddLinkComponentObject)2 MessageWallCloseRemoveThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallCloseRemoveThreadPageObject)2 MessageWallThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject)2 WatchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject)2 MiniEditorPreviewComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorPreviewComponentObject)1 PhotoAddComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.photo.PhotoAddComponentObject)1 PhotoOptionsComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.photo.PhotoOptionsComponentObject)1 SpecialWikiActivityPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject)1 SpecialBlockListPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialBlockListPage)1 SpecialBlockPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialBlockPage)1