use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageInBold.
@Test(groups = { "MessageWallFeatures_002", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageInBold() {
MessageWall wall = new MessageWall(driver).open(User.USER_MESSAGE_WALL.getUserName());
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
wall.setTitle(title);
MiniEditorComponentObject mini = wall.triggerMessageArea();
wall.clickBoldButton();
mini.switchAndWrite(message);
wall.submit();
wall.verifyMessageBoldText(title, message, User.USER_MESSAGE_WALL.getUserName());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageWithExternalLink.
@Test(groups = { "MessageWallFeatures_006", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageWithExternalLink() {
MessageWall wall = new MessageWall(driver).open(User.USER_MESSAGE_WALL.getUserName());
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
wall.setTitle(title);
wall.triggerMessageArea();
MessageWallAddLinkComponentObject addLink = wall.clickLinkButton();
addLink.addExternalLink(PageContent.EXTERNAL_LINK, PageContent.TEXT_LINK);
wall.submit();
wall.verifyExternalLink(title, PageContent.EXTERNAL_LINK, PageContent.TEXT_LINK, wikiURL);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class MessageWallNotificationsFollowersMessageTests method followerNotificationNewMessage_setup_2.
@Test(groups = { "MessageWallNotificationsFollowersMessageTests_002" }, dependsOnMethods = "followerNotificationNewMessage_setup_1")
public void followerNotificationNewMessage_setup_2() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName6, credentials.password6, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName6);
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.userName6);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class MessageWallNotificationsFollowersResponseTests method followerNotificationResponse_setup_3.
@Test(groups = { "MessageWallNotificationsFollowersResponseTests_003" }, dependsOnMethods = "followerNotificationResponse_setup_2")
public void followerNotificationResponse_setup_3() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName7, credentials.password7, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName8);
wall.follow();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class MessageWallNotificationsFollowersResponseTests method followerNotificationResponse_setup_1.
@Test(groups = { "MessageWallNotificationsFollowersResponseTests_001" })
public void followerNotificationResponse_setup_1() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName7, credentials.password7, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName8);
WatchPageObject watch = wall.unfollowCurrentUrl();
watch.confirmWatchUnwatch();
}
Aggregations