* make test not break randomly
This commit is contained in:
parent
5f14f73322
commit
4873da6448
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue