Skip to content

Instantly share code, notes, and snippets.

@foxyblocks
Created August 19, 2015 17:38
Show Gist options
  • Save foxyblocks/24226dc9201eabab4737 to your computer and use it in GitHub Desktop.
Save foxyblocks/24226dc9201eabab4737 to your computer and use it in GitHub Desktop.
8fa668c - (HEAD, origin/master, origin/HEAD, master) fix landing spec (4 minutes ago) <Christian Schlensker>
diff --git a/spec/features/landing_spec.rb b/spec/features/landing_spec.rb
index 13a5cc5..167cdae 100644
--- a/spec/features/landing_spec.rb
+++ b/spec/features/landing_spec.rb
@@ -42,7 +42,7 @@ describe 'Course Landing Pages', :js do

within container do
fill_in :email, with: email
- click_on button
+ page.execute_script("$('#{container} [type=submit]').click()")
end

page.should have_selector success_tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment