Search in sources :

Example 16 with MiniEditorComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject in project selenium-tests by Wikia.

the class MessageWallNotificationsFollowersResponseTests method followerNotificationResponse_setup_4.

@Test(groups = { "MessageWallNotificationsFollowersResponseTests_004" }, dependsOnMethods = "followerNotificationResponse_setup_3")
public void followerNotificationResponse_setup_4() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userName8, credentials.password8, wikiURL);
    MessageWall wall = new MessageWall(driver).open(credentials.userName8);
    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.userName8, reply);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) MessageWallThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 17 with MiniEditorComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject 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);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 18 with MiniEditorComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject 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);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 19 with MiniEditorComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject 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);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 20 with MiniEditorComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject in project selenium-tests by Wikia.

the class MessageWallNotificationsFollowersResponseTests method followerNotificationResponse_setup_2.

@Test(groups = { "MessageWallNotificationsFollowersResponseTests_002" }, dependsOnMethods = "followerNotificationResponse_setup_1")
public void followerNotificationResponse_setup_2() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userName8, credentials.password8, wikiURL);
    MessageWall wall = new MessageWall(driver).open(credentials.userName8);
    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.userName8);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Aggregations

MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)34 Test (org.testng.annotations.Test)32 MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)22 Execute (com.wikia.webdriver.common.core.annotations.Execute)19 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)13 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)6 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)6 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)5 VetAddVideoComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetAddVideoComponentObject)4 UserProfilePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.UserProfilePageObject)4 BlogPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.blog.BlogPageObject)4 VetOptionsComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.vet.VetOptionsComponentObject)3 Notification (com.wikia.webdriver.elements.oasis.components.notifications.Notification)2 DeletePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.actions.DeletePageObject)2 MessageWallCloseRemoveThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallCloseRemoveThreadPageObject)2 MessageWallThreadPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject)2 WebElement (org.openqa.selenium.WebElement)2 YoutubeVideo (com.wikia.webdriver.common.core.video.YoutubeVideo)1 MiniEditorPreviewComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorPreviewComponentObject)1 SpecialWikiActivityPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWikiActivityPageObject)1