summaryrefslogtreecommitdiff
path: root/spec/features/landing_page_spec.rb
blob: 03211868cb93c8b9ed2bc418c5e0912ce27c5379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require "spec_helper"

describe "landing page" do
  it "should display the default home page" do
    visit '/'
    expect(page).to have_content "Parley"
  end

  it "should let you sign up to the mailing list" do
    visit('/')
    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

  it "should not let you sign up without an email address" do
    visit('/')
    first(:css, 'input[type="submit"]').click
    expect(page).to have_content("Just the HR performance management features you want.")
  end
end