Search in sources :

Example 11 with MessageWall

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

the class MessageWallNotificationsThreadCreatorTests method threadCreatorNotification_setup_2.

@Test(groups = { "MessageWallNotificationsThreadCreatorTests_002" }, dependsOnMethods = "threadCreatorNotification_setup_1")
public void threadCreatorNotification_setup_2() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userName12, credentials.password12, wikiURL);
    MessageWall wall = new MessageWall(driver).open(credentials.userName12);
    MiniEditorComponentObject miniReply = wall.triggerReplyMessageArea();
    String reply = PageContent.MESSAGE_WALL_QUOTE_PREFIX + wall.getTimeStamp();
    miniReply.switchAndQuoteMessageWall(reply);
    wall.submitQuote();
    wall.verifyQuote(reply);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 12 with MessageWall

use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall 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 13 with MessageWall

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

the class MessageWallNotificationsThreadParticipantTests method threadCreatorNotification_setup_1.

@Test(groups = { "MessageWallNotificationsThreadParticipantTests_001" })
public void threadCreatorNotification_setup_1() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userName3, credentials.password3, wikiURL);
    MessageWall wall = new MessageWall(driver).open(credentials.userName3);
    MiniEditorComponentObject mini = wall.triggerMessageArea();
    String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
    title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
    mini.switchAndWrite(message);
    wall.setTitle(title);
    wall.submit();
    wall.verifyMessageText(title, message, credentials.userName3);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 14 with MessageWall

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

the class MessageWallTests method userCanCreateAndReplyToMessage.

@Test(groups = { "MessageWall_006", "MessageWall", "MessageWallTests" })
@Execute(asUser = User.USER)
public void userCanCreateAndReplyToMessage() {
    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());
    MiniEditorComponentObject miniReply = wall.triggerReplyMessageArea();
    String reply = PageContent.MESSAGE_WALL_QUOTE_PREFIX + wall.getTimeStamp();
    miniReply.switchAndQuoteMessageWall(reply);
    wall.submitQuote();
    wall.verifyQuote(reply);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 15 with MessageWall

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

the class MessageWallTests method userCanCreateAndQuoteMessage.

@Test(groups = { "MessageWall_004", "MessageWall", "MessageWallTests" })
@Execute(asUser = User.STAFF)
public void userCanCreateAndQuoteMessage() {
    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());
    MiniEditorComponentObject miniQuote = wall.clickQuoteButton();
    String quote = PageContent.MESSAGE_WALL_QUOTE_PREFIX + wall.getTimeStamp();
    miniQuote.switchAndQuoteMessageWall(quote);
    wall.submitQuote();
    wall.verifyQuote(quote);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)30 Test (org.testng.annotations.Test)30 MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)22 Execute (com.wikia.webdriver.common.core.annotations.Execute)17 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)12 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)4 VetAddVideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)2 VetOptionsComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject)2 MessageWallAddLinkComponentObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallAddLinkComponentObject)2 MessageWallCloseRemoveThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallCloseRemoveThreadPageObject)2 MessageWallThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject)2 WatchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject)2 MiniEditorPreviewComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorPreviewComponentObject)1 PhotoAddComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.photo.PhotoAddComponentObject)1 PhotoOptionsComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.photo.PhotoOptionsComponentObject)1 SpecialWikiActivityPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject)1 SpecialBlockListPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialBlockListPage)1 SpecialBlockPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialBlockPage)1