use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallCloseRemoveThreadPageObject 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.pageobject.messagewall.MessageWallCloseRemoveThreadPageObject 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();
}
Aggregations