use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject in project selenium-tests by Wikia.
the class ForumEditModeTests method adminUserCanMoveBoard.
@Test(groups = { "Forum_005", "Forum" })
@Execute(asUser = User.USER_ADMIN_FORUM)
public void adminUserCanMoveBoard() {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
ForumManageBoardsPageObject manageForum = forumMainPage.clickManageBoardsButton();
first = manageForum.getFirstForumName();
manageForum.clickMoveDown(first);
second = manageForum.getSecondForumName();
manageForum.clickMoveUp(second);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject in project selenium-tests by Wikia.
the class ForumEditModeTests method adminUserCanCreateNewBoard.
@Test(dataProvider = "getForumName", groups = { "ForumEditModeTests_002" })
@Execute(asUser = User.USER_ADMIN_FORUM)
public void adminUserCanCreateNewBoard(String name) {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
ForumManageBoardsPageObject manageForum = forumMainPage.clickManageBoardsButton();
title = name + manageForum.getTimeStamp();
description = PageContent.FORUM_DESCRIPTION_PREFIX + manageForum.getTimeStamp();
manageForum.createNewBoard(title, description);
manageForum.verifyBoardCreated(title, description);
manageForum.verifyForumExists(title, wikiURL);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject in project selenium-tests by Wikia.
the class ForumEditModeTests method adminUserCanDeleteBoard.
@Test(groups = { "ForumEditModeTests_003" })
@Execute(asUser = User.USER_ADMIN_FORUM)
public void adminUserCanDeleteBoard() {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
ForumManageBoardsPageObject manageForum = forumMainPage.clickManageBoardsButton();
first = manageForum.getFirstForumName();
second = manageForum.getSecondForumName();
manageForum.verifyForumExists(first, wikiURL);
manageForum.deleteForum(first, second);
manageForum.verifyForumNotExists(first, wikiURL);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject in project selenium-tests by Wikia.
the class ForumEditModeTests method adminUserCanEditForum.
@Test(groups = { "ForumEditModeTests_004" })
@Execute(asUser = User.USER_ADMIN_FORUM)
public void adminUserCanEditForum() {
ForumPage forumMainPage = new ForumPage();
forumMainPage.openForumMainPage(wikiURL);
ForumManageBoardsPageObject manageForum = forumMainPage.clickManageBoardsButton();
first = manageForum.getFirstForumName();
title = PageContent.FORUM_TITLE_EDIT_PREFIX + manageForum.getTimeStamp();
description = PageContent.FORUM_DESCRIPTION_EDIT_PREFIX + manageForum.getTimeStamp();
manageForum.editForum(first, title, description);
manageForum.verifyBoardCreated(title, description);
manageForum.verifyForumExists(title, wikiURL);
}
Aggregations