Skip to content

Instantly share code, notes, and snippets.

@thecatwasnot
Forked from onthespotqa/gist:1302270
Created October 20, 2011 20:33
Show Gist options
  • Save thecatwasnot/1302294 to your computer and use it in GitHub Desktop.
Save thecatwasnot/1302294 to your computer and use it in GitHub Desktop.
login
it "should login to insight" do
$users.each do |user|
Bookmarks.new do |c|
c.home_page.company_id.set("resonancerecords")
c.home_page.user_id.set(user)
c.home_page.password.set($password)
c.home_page.login_button.click
if user == "qasupport"
c.home_page.add_app_button.should be_visible
puts "support logged in successfully"
elsif user == "qamerch"
c.home_page.add_app_button.should_not be_visible
puts "merchandising logged in successfully"
elsif user == "qaadv"
c.home_page.add_app_button.should_not be_visible
puts "advance logged in successfully"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment