Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"visit" with dynamic segments #44

Closed
jackmatt2 opened this issue Jul 21, 2015 · 2 comments
Closed

"visit" with dynamic segments #44

jackmatt2 opened this issue Jul 21, 2015 · 2 comments

Comments

@jackmatt2
Copy link

I do I handle dynamic segment in a route

In a normal test I would do

    visit(`/booking/${booking.id}/account`);

This is what I want

export default PageObject.build({
  visit: visitable('/booking/:id'),
});

And then in my test

pageObject.visit({id: booking.id})

Is this sort of thing supported or is there a workaround for this?

@jackmatt2
Copy link
Author

Haha, just saw it in the docs now.

@juanazam
Copy link
Collaborator

😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants