How to write cucumber step definition for sign up page with ref_id in its URL? -
i trying write cucumber step definition when user visit sign page through credit referral.the url of sign page contains ref_id user id of referrer. how write step definition -
when /^i visit sign page ref_id: "([^"]*)"$/ |arg1| ....????? end
i figured out myself. here's web_step :
when /^i visit sign page ref_id "([^"]*)"$/ |id| visit("/users/sign_up?ref_id=#{id}") end
Comments
Post a Comment