summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2016-05-28 16:11:10 -0600
committermo khan <mo@mokhan.ca>2016-05-28 16:11:10 -0600
commit032defa413b4e775bbf2aab041a385c7d4f57f1d (patch)
tree8dccd9cb6c74a8f6b972d245554d0af9e308b771 /spec/support
parent890fc6b147cd92a2c336457cd044868abcad92e7 (diff)
convert search to a static gateway
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/pages/edit_profile_page.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/support/pages/edit_profile_page.rb b/spec/support/pages/edit_profile_page.rb
index a703be5..42b68e8 100644
--- a/spec/support/pages/edit_profile_page.rb
+++ b/spec/support/pages/edit_profile_page.rb
@@ -10,7 +10,17 @@ class EditProfilePage < PageModel
page.choose(gender.to_s.titleize)
page.choose(social_tolerance.to_s.titleize)
end
- save_changes
+ end
+
+ def choose_home_gym(city:, name:)
+ within("#gym-search form") do
+ fill_in "q", with: name
+ fill_in "city", with: city
+ click_button("Search")
+ end
+ wait_for_ajax
+ click_button("Mine")
+ wait_for_ajax
end
def save_changes