@Test(dependsOnMethods = "isCancelButtonDisplayed", groups = { "alfresco-one" }) public void toggleNotificationFeed() { notificationPage.toggleNotificationFeed(true); assertTrue(notificationPage.isNotificationFeedChecked()); notificationPage.toggleNotificationFeed(false); assertFalse(notificationPage.isNotificationFeedChecked()); }
public void toggleNotificationFeed(boolean enabled) { try { if (enabled != isNotificationFeedChecked()) { drone.findAndWait(NOTIFICATION_CHECKBOX).click(); } } catch (TimeoutException e) { throw new PageOperationException("Unable to find Notification checkbox", e); } }
NotificationPage extends SharePage { public void toggleNotificationFeed(boolean enabled) { try { if (enabled != isNotificationFeedChecked()) { drone.findAndWait(NOTIFICATION_CHECKBOX).click(); } } catch (TimeoutException e) { throw new PageOperationException("Unable to find Notification checkbox", e); } } }
NotificationPage extends SharePage { public void toggleNotificationFeed(boolean enabled) { try { if (enabled != isNotificationFeedChecked()) { drone.findAndWait(NOTIFICATION_CHECKBOX).click(); } } catch (TimeoutException e) { throw new PageOperationException("Unable to find Notification checkbox", e); } } NotificationPage(WebDrone drone); }
NotificationPage extends SharePage { public void toggleNotificationFeed(boolean enabled) { try { if (enabled != isNotificationFeedChecked()) { drone.findAndWait(NOTIFICATION_CHECKBOX).click(); } } catch (TimeoutException e) { throw new PageOperationException("Unable to find Notification checkbox", e); } } NotificationPage(WebDrone drone); @SuppressWarnings("unchecked") @Override NotificationPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override NotificationPage render(); @SuppressWarnings("unchecked") @Override NotificationPage render(final long time); ProfileNavigation getProfileNav(); boolean isOkButtonDisplayed(); boolean isCancelButtonDisplayed(); boolean isNotificationFeedChecked(); void toggleNotificationFeed(boolean enabled); HtmlPage selectOk(); HtmlPage selectCancel(); }
NotificationPage extends SharePage { public void toggleNotificationFeed(boolean enabled) { try { if (enabled != isNotificationFeedChecked()) { drone.findAndWait(NOTIFICATION_CHECKBOX).click(); } } catch (TimeoutException e) { throw new PageOperationException("Unable to find Notification checkbox", e); } } NotificationPage(WebDrone drone); @SuppressWarnings("unchecked") @Override NotificationPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override NotificationPage render(); @SuppressWarnings("unchecked") @Override NotificationPage render(final long time); ProfileNavigation getProfileNav(); boolean isOkButtonDisplayed(); boolean isCancelButtonDisplayed(); boolean isNotificationFeedChecked(); void toggleNotificationFeed(boolean enabled); HtmlPage selectOk(); HtmlPage selectCancel();  }