use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject in project selenium-tests by Wikia.
the class MessageWallTests method userCanCreateAndCloseMessage.
@Test(groups = { "MessageWall_003", "MessageWall", "MessageWallTests" })
@Execute(asUser = User.STAFF)
public void userCanCreateAndCloseMessage() {
MessageWall wall = new MessageWall(driver).open(User.STAFF.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.STAFF.getUserName());
MessageWallCloseRemoveThreadPageObject remove = wall.clickCloseThread();
String reason = PageContent.CLOSE_REASON + wall.getTimeStamp();
remove.closeRemoveThread(reason);
wall.verifyThreadClosed(User.STAFF.getUserName(), reason, title);
wall.clickReopenThread();
wall.verifyThreadReopened();
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject 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.componentobject.minieditor.MiniEditorComponentObject 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.componentobject.minieditor.MiniEditorComponentObject 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.componentobject.minieditor.MiniEditorComponentObject 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