jam-cloud/web/spec/features/alt_landing_spec.rb

34 lines
1.2 KiB
Ruby
Raw Normal View History

2014-08-14 15:09:33 +00:00
require 'spec_helper'
describe "Alternate Landing Pages", :js => true, :type => :feature, :capybara_feature => true do
subject { page }
it "landing-page watch-bands" do
visit landing_wb_path
find('h1', text: 'Watch 6 Bands Play Together from Different Locations')
find('a.landing_wb', text: 'Watch a Video to See How JamKazam Works').trigger(:click)
find('h1', text: 'See How JamKazam Works')
find('a.landing_wb', text: 'Watch a Video to See How to Get Started').trigger(:click)
find('h1', text: 'See How to Get Started')
find('div.fb-like')
find('iframe.twitter-follow-button')
find('.g-follow-btn iframe')
end
it "landing-page watch-overview" do
visit landing_wo_path
find('h1', text: 'Watch Video to See How JamKazam Works')
find('a.landing_wb', text: 'Watch 6 Bands Play Using JamKazam').trigger(:click)
find('h1', text: 'Watch 6 Bands Play Together from Different Locations')
find('a.landing_wb', text: 'See How to Get Started Using JamKazam').trigger(:click)
find('h1', text: 'See How to Get Started Using JamKazam')
find('div.fb-like')
find('iframe.twitter-follow-button')
find('.g-follow-btn iframe')
end
end