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();
}
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());
}
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();
}
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());
}
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);
}
Aggregations