|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.selenium.client.DashboardSeleniumHelper
public class DashboardSeleniumHelper
Dashboard Selenium testing logic.
| Nested Class Summary | |
|---|---|
static class |
DashboardSeleniumHelper.SpacesTab
|
static class |
DashboardSeleniumHelper.UpdatesTab
|
| Constructor Summary | |
|---|---|
DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client)
Instantiate a new dashboard helper and navigate to the dashboard page |
|
DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client,
DashboardSeleniumHelper.SpacesTab spacesTab,
DashboardSeleniumHelper.UpdatesTab updatesTab)
Instantiate a new dashboard helper and navigate to the specified spaces tab |
|
| Method Summary | |
|---|---|
void |
clickFavouriteButtonForSpace(Space space)
|
void |
clickFavouriteButtonForSpace(String spaceKey)
|
void |
clickSpacesListTab(DashboardSeleniumHelper.SpacesTab tab)
Click on a space tab. |
void |
clickUpdatesTab(DashboardSeleniumHelper.UpdatesTab tab)
Click on an updates tab. |
boolean |
currentSpacesTabContains(Space space)
|
DashboardSeleniumHelper.SpacesTab |
getSelectedSpacesTab()
|
DashboardSeleniumHelper.UpdatesTab |
getSelectedUpdatesTab()
|
void |
gotoDashboard()
Navigate to the dashboard page |
void |
gotoDashboard(DashboardSeleniumHelper.SpacesTab spacesTab,
DashboardSeleniumHelper.UpdatesTab updatesTab)
Navigate to the specified spaces tab on the dashboard with a page reload. |
int |
numUpdatesInSpacesTab(DashboardSeleniumHelper.SpacesTab tab)
The number of updates in the specified tab. |
boolean |
recentlyUpdatedIsEmpty()
|
boolean |
recentUpdatesContainsPage(Page page)
|
boolean |
spaceIsFavourited(Space space)
Space is favourited is not the same as !spaceIsNotFavourited because that does not check if the hidden add favourite button exists |
boolean |
spaceIsFavourited(String spaceKey)
Space is favourited is not the same as !spaceIsNotFavourited because that does not check if the hidden add favourite button exists |
boolean |
spaceIsNotFavourited(Space space)
Space is not favourited is not the same as !spaceIsFavourited because that does not check if the hidden remove favourite button exists |
boolean |
spaceIsNotFavourited(String spaceKey)
Space is not favourited is not the same as !spaceIsFavourited because that does not check if the hidden remove favourite button exists |
boolean |
tabIsVisible(DashboardSeleniumHelper.SpacesTab tab)
|
boolean |
tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client,
DashboardSeleniumHelper.SpacesTab spacesTab,
DashboardSeleniumHelper.UpdatesTab updatesTab)
client - Selenium clientspacesTab - Spaces tab to navigate toupdatesTab - Updates tab to navigate topublic DashboardSeleniumHelper(com.atlassian.selenium.SeleniumClient client)
client - Selenium client| Method Detail |
|---|
public void gotoDashboard(DashboardSeleniumHelper.SpacesTab spacesTab,
DashboardSeleniumHelper.UpdatesTab updatesTab)
clickSpacesListTab(com.atlassian.confluence.selenium.client.DashboardSeleniumHelper.SpacesTab) instead.
spacesTab - Spaces tab to navigate toupdatesTab - Updates tab to navigate topublic void gotoDashboard()
public boolean spaceIsFavourited(Space space)
space - The space key of the space to check
public boolean spaceIsFavourited(String spaceKey)
spaceKey - The space key of the space to check
public boolean spaceIsNotFavourited(Space space)
space - The space key of the space to check
public boolean spaceIsNotFavourited(String spaceKey)
spaceKey - The space key of the space to check
public void clickSpacesListTab(DashboardSeleniumHelper.SpacesTab tab)
gotoDashboard(tab) because it actually performs a mouse
click.
tab - The tab to click onpublic void clickUpdatesTab(DashboardSeleniumHelper.UpdatesTab tab)
gotoDashboard(tab) because it actually performs a mouse
click.
tab - The tab to click onpublic boolean tabIsVisible(DashboardSeleniumHelper.SpacesTab tab)
public boolean tabIsVisible(DashboardSeleniumHelper.UpdatesTab tab)
public int numUpdatesInSpacesTab(DashboardSeleniumHelper.SpacesTab tab)
tab - The tab to get the number of updates for
public void clickFavouriteButtonForSpace(Space space)
public void clickFavouriteButtonForSpace(String spaceKey)
public boolean recentlyUpdatedIsEmpty()
public DashboardSeleniumHelper.SpacesTab getSelectedSpacesTab()
public DashboardSeleniumHelper.UpdatesTab getSelectedUpdatesTab()
public boolean recentUpdatesContainsPage(Page page)
public boolean currentSpacesTabContains(Space space)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||