use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MessageWallNotificationsThreadParticipantTests method userIsNotifiedWhenOtherUserWritesResponseToHerResponseOnMessageWal.
@Test(groups = { "MessageWallNotificationsThreadParticipantTests_004" }, dependsOnMethods = "threadCreatorNotification_setup_3")
public void userIsNotifiedWhenOtherUserWritesResponseToHerResponseOnMessageWal() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName4, credentials.password4, wikiURL);
NotificationsComponentObject notifications = new NotificationsComponentObject(driver);
notifications.showNotifications();
notifications.verifyNotification(title, credentials.userName3, "replied to " + credentials.userName3);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BasicActions method userSearch.
@Test(groups = { "userSearch", "Search", "Search2" })
@Execute(asUser = User.USER)
public void userSearch() {
WikiBasePageObject base = new WikiBasePageObject();
base.openWikiPage(testedWiki);
NavigationBar navigation = new NavigationBar(driver);
IntraWikiSearchPageObject search = navigation.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
search.verifyFirstArticleNameTheSame(SearchContent.SEARCH_PHRASE_RESULTS);
}
Aggregations