Search in sources :

Example 1 with ForumManageBoardsPageObject

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);
}
Also used : ForumManageBoardsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 2 with ForumManageBoardsPageObject

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);
}
Also used : ForumManageBoardsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 3 with ForumManageBoardsPageObject

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);
}
Also used : ForumManageBoardsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 4 with ForumManageBoardsPageObject

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);
}
Also used : ForumManageBoardsPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject) ForumPage(com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)4 ForumManageBoardsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumManageBoardsPageObject)4 ForumPage (com.wikia.webdriver.pageobjectsfactory.pageobject.forumpageobject.ForumPage)4 Test (org.testng.annotations.Test)4