Search in sources :

Example 1 with SpecialUnblockPage

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

the class UserAndRights method staffCanUnblockUser.

@Test(groups = { "usersAndRights004" }, dependsOnMethods = { "staffCanBlockUser" })
@Execute(asUser = User.STAFF)
public void staffCanUnblockUser() {
    SpecialUnblockPage unblock = new SpecialUnblockPage().open();
    unblock.unblockUser(credentials.userNameBlocked);
    unblock.verifyUnblockMessage(credentials.userNameBlocked);
    SpecialBlockListPage list = new SpecialBlockListPage().open();
    list.searchForUser(credentials.userNameBlocked);
    list.verifyUserUnblocked();
}
Also used : SpecialUnblockPage(com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialUnblockPage) SpecialBlockListPage(com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialBlockListPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)1 SpecialBlockListPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialBlockListPage)1 SpecialUnblockPage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.block.SpecialUnblockPage)1 Test (org.testng.annotations.Test)1