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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -