* wip
This commit is contained in:
parent
3daedbd549
commit
95cbb47978
|
|
@ -69,6 +69,7 @@ describe "Find Session", :js => true, :type => :feature, :capybara_feature => tr
|
|||
end
|
||||
|
||||
it "shows latency information correctly" do
|
||||
# this will try to show all 6 latency badges. unknown, good, fair, poor, unacceptable, and me
|
||||
user.last_jam_locidispid = austin[:locidispid]
|
||||
user.save!
|
||||
|
||||
|
|
@ -98,6 +99,18 @@ describe "Find Session", :js => true, :type => :feature, :capybara_feature => tr
|
|||
page.assert_selector('div#sessions-active .found-session', count: 1)
|
||||
find(".latency-value.latency-poor[data-user-id='#{session1_creator.id}']", text: 'POOR')
|
||||
|
||||
Score.connection.execute('DELETE FROM scores').check
|
||||
score1, score2 = create_score(austin, dallas, { auserid: user.id, buserid: session1_creator.id},
|
||||
austin[:jamisp].beginip, dallas[:jamisp].beginip, 'a_client_id', 'b_client_id', score=200) # creates scores with very recent created_at, so it should be skipped
|
||||
find('#btn-refresh').trigger(:click)
|
||||
page.assert_selector('div#sessions-active .found-session', count: 1)
|
||||
find(".latency-value.latency-unacceptable[data-user-id='#{session1_creator.id}']", text: 'UNACCEPTABLE')
|
||||
|
||||
|
||||
fast_signout
|
||||
fast_signin(session1_creator, "/client#/findSession")
|
||||
page.assert_selector('div#sessions-active .found-session', count: 1)
|
||||
find(".latency-value.latency-me[data-user-id='#{session1_creator.id}']", text: 'ME')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue