You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Rails app using Capybara, in order to use the "I send a XXX request to…" step definitions, I needed to specify the host otherwise it would always 404. Therefore I now provide page.driver.send with a fully-fledged path in the step definition. I did that the brutal way by adding the following piece of code in the step definition, before the final if/else:
Hi,
In a Rails app using Capybara, in order to use the "I send a XXX request to…" step definitions, I needed to specify the host otherwise it would always 404. Therefore I now provide
page.driver.send
with a fully-fledged path in the step definition. I did that the brutal way by adding the following piece of code in the step definition, before the finalif/else
:Capybara's internals (see Capybara::RackTest::Browser#process) feature a more subtle way of handling the issue.
Still, I am not sure how it should be fixed in cucumber-api-steps. Food for thoughts!
The text was updated successfully, but these errors were encountered: