use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallAddLinkComponentObject in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageWithInternalLink.
@Test(groups = { "MessageWallFeatures_005", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageWithInternalLink() {
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.addInternalLink(PageContent.REDIRECT_LINK, PageContent.TEXT_LINK);
wall.submit();
wall.verifyInternalLink(title, PageContent.REDIRECT_LINK, PageContent.TEXT_LINK, wikiURL);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallAddLinkComponentObject 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);
}
Aggregations