Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Given(/^I am logged in as a salesman assigned to "(.*?)", with the following products:$/) do |client, table|
- salesman = Support::Salesman.find_or_create
- client = Support::Client.new(client)
- Support::Salesman.assign_client(client)
- Support::Product.assign_products(salesman, table.hashes)
- LoginPage.visit.login(salesman)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement