navigateAsync()
Navigates to the provided target.
navigateAsync(
target: StringConvertible,
mode?: NavigationContext.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 NavigationContext.NavigationMode)
Errors
This method throws an error if the navigation target is invalid
Related
class TestNavigationContext
A class that encapsulates the current navigation location, simulating browser-like behavior.
