Search in sources :

Example 1 with DeleteDialog

use of com.wikia.webdriver.elements.mercury.components.discussions.common.DeleteDialog in project selenium-tests by Wikia.

the class DeleteAllPostsByUserTests method clickDeleteAllDesktopDisplaysConfirmationDialog.

// GENERAL - no specific user permissions
@Test(groups = "discussions-deleteAllPostsByUserDesktop")
@Execute(asUser = User.STAFF)
@InBrowser(browserSize = DESKTOP_RESOLUTION)
public void clickDeleteAllDesktopDisplaysConfirmationDialog() {
    DeleteDialog confirmationDialog = getDeleteAllButton(userWithPosts.getUserId()).click();
    assertTrue(confirmationDialog.isVisible());
}
Also used : DeleteDialog(com.wikia.webdriver.elements.mercury.components.discussions.common.DeleteDialog) Execute(com.wikia.webdriver.common.core.annotations.Execute) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Example 2 with DeleteDialog

use of com.wikia.webdriver.elements.mercury.components.discussions.common.DeleteDialog in project selenium-tests by Wikia.

the class DeleteAllPostsByUserTests method clickDeleteAllMobileDisplaysConfirmationDialog.

@Test(groups = "discussions-deleteAllPostsByUserMobile")
@Execute(asUser = User.STAFF)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void clickDeleteAllMobileDisplaysConfirmationDialog() {
    DeleteDialog confirmationDialog = getDeleteAllButton(userWithPosts.getUserId()).click();
    assertTrue(confirmationDialog.isVisible());
}
Also used : DeleteDialog(com.wikia.webdriver.elements.mercury.components.discussions.common.DeleteDialog) Execute(com.wikia.webdriver.common.core.annotations.Execute) InBrowser(com.wikia.webdriver.common.core.annotations.InBrowser)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)2 InBrowser (com.wikia.webdriver.common.core.annotations.InBrowser)2 DeleteDialog (com.wikia.webdriver.elements.mercury.components.discussions.common.DeleteDialog)2