Fix unit tests.

This commit is contained in:
Steven Miers 2015-02-01 19:29:21 -06:00
parent 957ecf6735
commit f80e9358f0
3 changed files with 3 additions and 3 deletions

View File

@ -430,7 +430,7 @@ def assert_all_tracks_seen(users=[])
users.each do |user|
in_client(user) do
users.reject {|u| u==user}.each do |other|
find('div.track-label', text: other.name)
find('div.track-label > span', text: other.name)
#puts user.name + " is able to see " + other.name + "\'s track"
end
end

View File

@ -59,7 +59,7 @@ describe "In a Session", :js => true, :type => :feature, :capybara_feature => tr
end
leave_music_session_sleep_delay
in_client(finder) { expect(page).to_not have_selector('div.track-label', text: user.name) }
in_client(finder) { expect(page).to_not have_selector('div.track-label > span', text: user.name) }
end
many = 4

View File

@ -617,7 +617,7 @@ def assert_all_tracks_seen(users=[])
users.each do |user|
in_client(user) do
users.reject {|u| u==user}.each do |other|
find('div.track-label', text: other.name)
find('div.track-label > span', text: other.name)
#puts user.name + " is able to see " + other.name + "\'s track"
end
end