Skip to content
Snippets Groups Projects

Match address of host when checking whether to login

Merged Ian Baum requested to merge qa-geo-check-address into master
All threads resolved!
3 files
+ 13
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 7
1
@@ -45,7 +45,13 @@ def can_sign_in?
@@ -45,7 +45,13 @@ def can_sign_in?
has_element?(:sign_in_button)
has_element?(:sign_in_button)
end
end
def on_login_page?
def on_login_page?(address = nil)
 
unless address.nil?
 
desired_host = URI(Runtime::Scenario.send("#{address}_address")).host
 
 
return false if current_host != desired_host
 
end
 
has_element?(:login_page, wait: 0)
has_element?(:login_page, wait: 0)
end
end
Loading