diff --git a/articles/flow/testing/browserless/getting-started.adoc b/articles/flow/testing/browserless/getting-started.adoc index 33304caeab..535713c317 100644 --- a/articles/flow/testing/browserless/getting-started.adoc +++ b/articles/flow/testing/browserless/getting-started.adoc @@ -200,6 +200,15 @@ To navigate to another registered view, use the [methodname]`navigate()` methods + [methodname]`navigate("template/myParam", Template.class)` +[since:com.vaadin:vaadin@V25.3]#The location is written the way it appears in the browser's address bar, so it can carry a query string and a fragment#: + +[source,java] +---- +OrderView view = navigate("order/ORD-1?tab=history", OrderView.class); +---- + +The view reads those query parameters from the navigation event, as it does in a running application. The map that [methodname]`navigate(Template.class, Map)` takes holds route template parameters instead, so a query string belongs in the location string. + All navigation methods return the instantiated view, so that its fields can be used directly for testing. [NOTE]