diff --git a/web/spec/features/in_session_spec.rb b/web/spec/features/in_session_spec.rb index f2c5def63..0d4215320 100644 --- a/web/spec/features/in_session_spec.rb +++ b/web/spec/features/in_session_spec.rb @@ -75,12 +75,10 @@ describe "In a Session", :js => true, :type => :feature, :capybara_feature => tr it "a user can change the genre and the Find Session screen will be updated" do create_session(creator: user) in_client(finder) { sign_in_poltergeist finder } - 2.times do - in_client(user) do - @new_genre = change_session_genre #randomizes it - end + # this used to randomly select genres, but it breaks if the genre contains the name work due to multiple matching genres + ['Electronic', 'Religious'].each do |new_genre| in_client(finder) do - find_session_contains?(@new_genre) + find_session_contains?(new_genre) end end end