Interface Dashboard
public interface Dashboard
An abstraction for logically grouping JIRA dashboard functionality for functional tests. When used as a return
value it also implies that the current location is the dashboard.
- Since:
- v3.13
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classHolds the identifiers of the tables that display Portal Pages. -
Method Summary
Modifier and TypeMethodDescriptionaddPage(SharedEntityInfo info, Long cloneId) Add the passed dashboard page to JIRA.Turns off configuration mode for the dashboard.editPage(SharedEntityInfo info) Change the passed dashboard page in JIRA.Turns on configuration mode for the dashboard.favouriteDashboard(long id) Make the passed dashboard one of the logged in user's favourites.getDashboardPageId(String dashboardPageName, Locator pagesLocator) Find the id of the dashboard page with the given name from a table to dashboard pages.Navigates to the dashboard.navigateTo(long pageId) Navigates to the a specific dashboard page.Open the default dashboard configuration.Navigate to the screen that shows favourite dashboards.navigateToFullConfigure(Long dashboardPageId) Open the full configure screen for the passed dashboard.Navigate to the screen that shows my dashboards.Navigate to the screen that shows popular dashboards.Navigate to the screen that allows dashboard searching.Reset the dashboard configuration to its initial state.Reset user session state.unFavouriteDashboard(long id) Remove the passed dashboard from the user's favourites.
-
Method Details
-
enableConfigureMode
Dashboard enableConfigureMode()Turns on configuration mode for the dashboard. If it is already turned on, has no effect. If the current user has the default dashboard, subsequently they will have a custom dashboard, even though it will be configured the same as the default dashboard. Needs to be on the dashboard to work.- Returns:
- this in a FluentInterface style.
-
disableConfigureMode
Dashboard disableConfigureMode()Turns off configuration mode for the dashboard. If it is already off, it has no effect. Expects to be on the Dashboard to work.- Returns:
- itself.
-
getDashboardPageId
Find the id of the dashboard page with the given name from a table to dashboard pages.- Parameters:
dashboardPageName- the name of the dashboard to find.pagesLocator- the location of the table listing the dashboard.- Returns:
- the identifier if the dashboard page or null if no such page exists.
-
favouriteDashboard
Make the passed dashboard one of the logged in user's favourites.- Parameters:
id- the id of the dashboard to favourite.- Returns:
- this object so that the requests can be chained.
-
unFavouriteDashboard
Remove the passed dashboard from the user's favourites.- Parameters:
id- the id of the dashboard to unfavourite.- Returns:
- this object so that the requests can be chained.
-
resetUserSessionState
Dashboard resetUserSessionState()Reset user session state.- Returns:
- this object so that the requests can be chained.
-
resetToDefault
Dashboard resetToDefault()Reset the dashboard configuration to its initial state.- Returns:
- this object so that the requests can be chained.
-