Search in sources :

Example 1 with MessageWallThreadPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject in project selenium-tests by Wikia.

the class MessageWallNotificationsThreadParticipantTests method threadCreatorNotification_setup_3.

@Test(groups = { "MessageWallNotificationsThreadParticipantTests_003" }, dependsOnMethods = "threadCreatorNotification_setup_2")
public void threadCreatorNotification_setup_3() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userName3, credentials.password3, wikiURL);
    MessageWall wall = new MessageWall(driver).open(credentials.userName3);
    MessageWallThreadPageObject thread = wall.openThread(title);
    MiniEditorComponentObject miniReply = thread.triggerMessageArea();
    String reply = PageContent.MESSAGE_WALL_QUOTE_PREFIX + wall.getTimeStamp();
    miniReply.switchAndWrite(reply);
    thread.submitQuote();
    thread.verifyLastReply(credentials.userName3, reply);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) MessageWallThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 2 with MessageWallThreadPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject in project selenium-tests by Wikia.

the class MessageWallNotificationsFollowersResponseTests method followerNotificationResponse_setup_4.

@Test(groups = { "MessageWallNotificationsFollowersResponseTests_004" }, dependsOnMethods = "followerNotificationResponse_setup_3")
public void followerNotificationResponse_setup_4() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userName8, credentials.password8, wikiURL);
    MessageWall wall = new MessageWall(driver).open(credentials.userName8);
    MessageWallThreadPageObject thread = wall.openThread(title);
    MiniEditorComponentObject miniReply = thread.triggerMessageArea();
    String reply = PageContent.MESSAGE_WALL_QUOTE_PREFIX + wall.getTimeStamp();
    miniReply.switchAndWrite(reply);
    thread.submitQuote();
    thread.verifyLastReply(credentials.userName8, reply);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) MessageWallThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Aggregations

MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)2 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)2 MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)2 MessageWallThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject)2 Test (org.testng.annotations.Test)2