VRFS-2317 fixed tests to be compatible with default musician access selection

This commit is contained in:
Jonathan Kolyer 2014-10-11 15:39:52 +00:00
parent a18cd57510
commit cf4355bdd2
1 changed files with 5 additions and 5 deletions

View File

@ -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
end