-
-
Save thecatwasnot/1302294 to your computer and use it in GitHub Desktop.
login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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