Search in sources :

Example 1 with MiniEditorPreviewComponentObject

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

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)1 MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)1 MiniEditorPreviewComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorPreviewComponentObject)1 MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)1 Test (org.testng.annotations.Test)1