Right now the RegExp for wildcard parameters requires the wildcard to be exact
Using your example:
cy.visit({
route: 'team.dashboard',
parameters: { team: 1 }
});
This will replace following
/teams/{team}/dashboard to /teams/1/dashboard
What if you have a route that have optional parameters
cy.visit({
route: 'team.dashboard.style',
parameters: { team: 1, style: 3 }
});
/teams/{team}/dashboard/{style?} to /teams/1/dashboard/%7Bstyle%7D