summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosemary Sanchez <rsanchez@madebyuppercut.com>2013-07-22 10:40:07 -0600
committerRosemary Sanchez <rsanchez@madebyuppercut.com>2013-07-22 10:40:07 -0600
commit3cc072940ebf35b52c49f0654172bea8b2da8a50 (patch)
tree45c4140420206daa76a802d5420ebece456ae57b
parentca095ac91d96bfaea91719863e37bdcb1f98bc54 (diff)
Adjust test to work with duplicate form elements.
-rw-r--r--spec/features/landing_page_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/landing_page_spec.rb b/spec/features/landing_page_spec.rb
index e6149f6..3a950b7 100644
--- a/spec/features/landing_page_spec.rb
+++ b/spec/features/landing_page_spec.rb
@@ -6,10 +6,10 @@ describe "landing page" do
expect(page).to have_content "Parley"
end
- xit "should let you sign up to the mailing list" do
+ it "should let you sign up to the mailing list" do
visit('/')
- fill_in('sign_up_email', with: 'admin@madebyuppercut.com')
- click_button('Sign up now')
+ first(:css, '#sign_up_email').set "admin@madebyuppercut.com"
+ first(:css, 'input[type="submit"]').click
expect(page).to have_content("Thanks for signing up with Parley. We’ll keep you informed with any important updates and, of course, the official launch date.")
end