From cf4355bdd208fedf51103397f1a613e7caea97de Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Sat, 11 Oct 2014 15:39:52 +0000 Subject: [PATCH] VRFS-2317 fixed tests to be compatible with default musician access selection --- web/spec/features/create_session_flow_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/spec/features/create_session_flow_spec.rb b/web/spec/features/create_session_flow_spec.rb index e89adcc4a..fb83e6d27 100644 --- a/web/spec/features/create_session_flow_spec.rb +++ b/web/spec/features/create_session_flow_spec.rb @@ -181,9 +181,9 @@ describe "Create Session UI", :js => true, :type => :feature, :capybara_feature find('input#session-policy-standard[type="radio"][checked="checked"]') find('input#session-policy-confirm[type="checkbox"]') - expect( find(:css, 'select#session-musician-access', :visible => false).value ).to eq('musicians-approval') + expect( find(:css, 'select#session-musician-access', :visible => false).value ).to eq('musicians') expect( find(:css, 'select#session-fans-access', :visible => false).value ).to eq('listen-chat-each') - page.should have_css('span.selected', text: "Musicians may join by approval") + page.should have_css('span.selected', text: "Musicians may join at will") page.should have_css('span.selected', text: "Fans may listen, chat with each other") page.should have_css(".btn-back") @@ -222,10 +222,10 @@ describe "Create Session UI", :js => true, :type => :feature, :capybara_feature find('em#session-name-disp', text: 'Test Name (Alternative Rock)') find('div#session-description-disp', text: 'Test Description') find('div#session-language-disp', text: 'English') - find('div#session-invited-disp', text: 'Any interested JamKazam musicians that I approve') + find('div#session-invited-disp', text: 'Any interested JamKazam musicians who want to join us') find('div#session-instruments-me-disp', text: 'Other') find('div#session-instruments-rsvp-disp', text: 'Any Instrument Allowed') - find('div#session-musician-access-disp', text: 'Musicians: Musicians may join by approval') + find('div#session-musician-access-disp', text: 'Musicians: Musicians may join at will') find('div#session-fans-access-disp', text: 'Fans: Fans may listen, chat with each other') find('div#session-policy-disp', text: 'Standard') @@ -235,4 +235,4 @@ describe "Create Session UI", :js => true, :type => :feature, :capybara_feature end end end -end \ No newline at end of file +end