navigateAsync
Navigates to the provided target.
navigateAsync(target: NavigationTarget, mode?: NavigationController.NavigationMode): Promise<void>
Notes
- The path is set only after a delay (see TestContextOptions.navigationDelay), simulating asynchronous browser behavior.
Parameters
- target — The navigation target
- mode — An optional navigation mode (an object that matches NavigationController.NavigationMode)
Errors
- This method throws an error if the navigation target is invalid
Related
- class TestNavigationControllerA class that encapsulates the current navigation location, simulating browser-like behavior.