use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MessageWallNotificationsOwnerTests method wallOwnerReceivesNotification_setup.
@Test(groups = { "MessageWallNotificationsOwnerTests_001" })
public void wallOwnerReceivesNotification_setup() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName9, credentials.password9, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName10);
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.userName9);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MessageWallNotificationsThreadCreatorTests method threadCreatorNotification_setup_1.
@Test(groups = { "MessageWallNotificationsThreadCreatorTests_001" })
public void threadCreatorNotification_setup_1() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName11, credentials.password11, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName12);
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.userName11);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MessageWallNotificationsThreadCreatorTests method userIsNotifiedWhenOtherUserWritesResponseOnHerMessageWal.
@Test(groups = { "MessageWallNotificationsThreadCreatorTests_003" }, dependsOnMethods = "threadCreatorNotification_setup_2")
public void userIsNotifiedWhenOtherUserWritesResponseOnHerMessageWal() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName11, credentials.password11, wikiURL);
NotificationsComponentObject notifications = new NotificationsComponentObject(driver);
notifications.showNotifications();
notifications.verifyNotification(title, credentials.userName12, "replied to your message");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MessageWallNotificationsThreadParticipantTests method threadCreatorNotification_setup_2.
@Test(groups = { "MessageWallNotificationsThreadParticipantTests_002" }, dependsOnMethods = "threadCreatorNotification_setup_1")
public void threadCreatorNotification_setup_2() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName4, credentials.password4, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName3);
MiniEditorComponentObject miniReply = wall.triggerReplyMessageArea();
String reply = PageContent.MESSAGE_WALL_QUOTE_PREFIX + wall.getTimeStamp();
miniReply.switchAndQuoteMessageWall(reply);
wall.submitQuote();
wall.verifyQuote(reply);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MessageWallNotificationsFollowersMessageTests method followerNotificationNewMessage_setup_1.
@Test(groups = { "MessageWallNotificationsFollowersMessageTests_001" })
public void followerNotificationNewMessage_setup_1() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName5, credentials.password5, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName6);
WatchPageObject watch = wall.unfollowCurrentUrl();
watch.confirmWatchUnwatch();
wall.follow();
}
Aggregations