Search in sources :

Example 1 with WatchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject in project selenium-tests by Wikia.

the class FollowArticleTests method unfollowArticleIfFollowed.

@Test
@Execute(asUser = User.USER)
public void unfollowArticleIfFollowed() {
    new ArticleContent().push(PageContent.ARTICLE_TEXT, ARTICLE_NAME);
    ArticlePageObject article = new ArticlePageObject().open(ARTICLE_NAME);
    WatchPageObject watch = article.unfollowArticle();
    watch.confirmWatchUnwatch();
    article.verifyPageUnfollowed();
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) WatchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 2 with WatchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject in project selenium-tests by Wikia.

the class MessageWallNotificationsFollowersResponseTests method followerNotificationResponse_setup_1.

@Test(groups = { "MessageWallNotificationsFollowersResponseTests_001" })
public void followerNotificationResponse_setup_1() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.loginAs(credentials.userName7, credentials.password7, wikiURL);
    MessageWall wall = new MessageWall(driver).open(credentials.userName8);
    WatchPageObject watch = wall.unfollowCurrentUrl();
    watch.confirmWatchUnwatch();
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) WatchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 3 with WatchPageObject

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

Example 4 with WatchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject in project selenium-tests by Wikia.

the class FollowBlogTests method FollowBlog_001_setup.

@Test(groups = "FollowBlog")
@Execute(asUser = User.USER)
public void FollowBlog_001_setup() {
    WikiBasePageObject base = new WikiBasePageObject();
    UserProfilePageObject userProfile = base.openProfilePage(credentials.userName, wikiURL);
    userProfile.clickOnBlogTab();
    BlogPageObject blogPage = userProfile.openFirstPost();
    blogTitle = blogPage.getBlogName();
    WatchPageObject watch = blogPage.unfollowBlogPage();
    watch.confirmWatchUnwatch();
    blogPage.verifyPageUnfollowed();
}
Also used : BlogPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.blog.BlogPageObject) WatchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) UserProfilePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.UserProfilePageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 5 with WatchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject in project selenium-tests by Wikia.

the class FollowPhotosTests method FollowPhoto_001_setup.

@Test(groups = "FollowPhoto")
@Execute(asUser = User.USER)
public void FollowPhoto_001_setup() {
    WikiBasePageObject base = new WikiBasePageObject();
    SpecialNewFilesPage special = base.openSpecialNewFiles(wikiURL);
    imageName = special.getRandomImageName();
    WatchPageObject watch = special.unfollowImage(wikiURL, imageName);
    watch.confirmWatchUnwatch();
    special.verifyPageUnfollowed();
}
Also used : WatchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) SpecialNewFilesPage(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialNewFilesPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

WatchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.watch.WatchPageObject)6 Test (org.testng.annotations.Test)6 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)5 Execute (com.wikia.webdriver.common.core.annotations.Execute)4 MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)2 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)1 UserProfilePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.UserProfilePageObject)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1 SpecialNewFilesPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialNewFilesPage)1 SpecialVideosPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialVideosPageObject)1 BlogPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.blog.BlogPageObject)1