use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class VetAddingVideoTests method VetAddVideo_002_MessageWallLibrary.
@Test(groups = { "VetAddVideo_002" })
@RelatedIssue(issueID = "QAART-889")
@Execute(asUser = User.USER)
public void VetAddVideo_002_MessageWallLibrary() {
MessageWall wall = new MessageWall(driver).open(credentials.userName);
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
MiniEditorComponentObject mini = wall.triggerMessageArea();
wall.clickBoldButton();
mini.switchAndWrite(message);
wall.setTitle(title);
VetAddVideoComponentObject vetAddingVideo = mini.clickAddVideo();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 0);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
mini.verifyVideoMiniEditor();
wall.submit();
wall.verifyPostedMessageVideo(title);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageWithImage.
@Test(groups = { "MessageWallFeatures_004", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageWithImage() {
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();
PhotoAddComponentObject photoAddPhoto = wall.clickImageButton();
PhotoOptionsComponentObject photoOptions = photoAddPhoto.addPhotoFromWiki("image", 1);
photoOptions.setCaption(PageContent.CAPTION);
photoOptions.clickAddPhoto();
wall.submit();
wall.verifyImageAdded(title);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageInItallic.
@Test(groups = { "MessageWallFeatures_003", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageInItallic() {
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.clickItalicButton();
mini.switchAndWrite(message);
wall.submit();
wall.verifyMessageItalicText(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 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.MessageWall in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageInSourceMode.
@Test(groups = { "MessageWallFeatures_001", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageInSourceMode() {
MessageWall wall = new MessageWall(driver).open(User.USER_MESSAGE_WALL.getUserName());
wall.triggerMessageArea();
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
wall.clickSourceModeButton();
wall.writeSourceMode(message);
wall.setTitle(title);
wall.submit();
wall.verifyMessageText(title, message, User.USER_MESSAGE_WALL.getUserName());
}
Aggregations