Unfortunately, Perspective navigation as an action is something that just can not be done in the Designer, and tinkering/testing those scripts should be done in a full-fledged browser.
The Link component is similar in that 80% of use cases for the Link component will NOT work in the Designer, but will work in an actual Session.
For example, how would the Designer open an additional tab if your Link.props.target value is “tab”?