Package com.tomtom.ivi.appsuite.navappcomponents.api.testing.functional

Properties

Link copied to clipboard
val thatIs3dBuildingsToggleButton: Matcher<View>
Link copied to clipboard
val thatIsConfirmEndRouteButtonIdle: Matcher<View>

Returns a Matcher that matches the button that confirms end the route.

Link copied to clipboard
val thatIsGuidanceFragmentContainer: Matcher<View>

Returns a Matcher that matches the fragment container for the guidance and settings related NavApp components. Note: Search, Eta, Guidance, all share the same panel.

Link copied to clipboard
val thatIsLocationPreviewPanelBackButton: Matcher<View>

Returns a Matcher that matches the back button on the Location Preview panel.

Link copied to clipboard
val thatIsLocationPreviewPanelDriveButton: Matcher<View>

Returns a Matcher that matches the Drive button on the Location Preview panel.

Link copied to clipboard
val thatIsMapDisplayFragmentContainer: Matcher<View>
Link copied to clipboard
val thatIsNextInstructionPanel: Matcher<View>

Returns a Matcher that matches the next instruction panel.

Link copied to clipboard
val thatIsSearchPanel: Matcher<View>

Returns a Matcher that matches the search panel container.

Link copied to clipboard
val thatIsSearchPanelInput: Matcher<View>

Returns a Matcher that matches the search panel input.

Link copied to clipboard
val thatIsSettingsButton: Matcher<View>
Link copied to clipboard
val thatIsSettingsCloseButton: Matcher<View>

Functions

Link copied to clipboard
fun assertHorizonPanelNotVisible()

Asserts that the horizon panel is not visible.

Link copied to clipboard
fun assertHorizonPanelVisible()

Asserts that the horizon panel is visible.

Link copied to clipboard
fun assertLocationPreviewPanelNotVisible()

Asserts that the Location Preview panel is or becomes not visible.

Link copied to clipboard
fun assertLocationPreviewPanelVisible()

Asserts that the Location Preview panel is or becomes visible.

Link copied to clipboard
fun assertNextInstructionPanelVisible()

Asserts that the next instruction panel is visible.

Link copied to clipboard
fun assertSearchPanelVisible()

Asserts that the search panel is or becomes visible.

Link copied to clipboard
fun clickOnLocationPreviewPanelDriveButton()

Clicks on Drive button on the Location Preview panel to start navigation.

Link copied to clipboard
fun performSearch(query: String)

Performs a search with the given query. replaceText is used to paste the whole string instead of typing characters one-by-one, which prevents NavAppFragments from capturing focus during typing.

Link copied to clipboard
fun planTripTo(tripService: TripServiceApi, tripDestination: Place)

Plans a trip to the given tripDestination.

Link copied to clipboard
fun startNavigationToFirstSearchResult(searchQuery: String)

Test routine to simplify a common sequence of steps to start navigation from search results. It consists of following steps:

Link copied to clipboard
fun stopNavigation()

Test routine to simplify a sequence of steps to stop currently active navigation. It consists of following steps:

Link copied to clipboard
fun waitForSearchResultsAndClickOnFirstItem()

Waits for the search results and clicks on the first item.