summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/landing_page_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/features/landing_page_spec.rb b/spec/features/landing_page_spec.rb
index b59e0cf..a74ede2 100644
--- a/spec/features/landing_page_spec.rb
+++ b/spec/features/landing_page_spec.rb
@@ -6,10 +6,16 @@ describe "landing page" do
expect(page).to have_content "Parley"
end
- it "should let you sign up to the mailing list", js: true 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')
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
+
+ it "should not let you sign up without an email address" do
+ visit('/')
+ click_button('Sign up now')
+ expect(page).to have_content("Just the HR performance management features you want.")
+ end
end