use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorPreviewComponentObject 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());
}
Aggregations