* trying to fix these find session test failures
This commit is contained in:
parent
b11c707155
commit
6de0253c4c
|
|
@ -60,7 +60,7 @@ describe "Find Session", :js => true, :type => :feature, :capybara_feature => tr
|
|||
|
||||
it "find one active session" do
|
||||
find('#btn-refresh').trigger(:click)
|
||||
page.should have_no_selector('.paginate-wait')
|
||||
find('.paginate-wait')
|
||||
find('#sessions-active .found-session', count: 1)
|
||||
end
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ describe "Find Session", :js => true, :type => :feature, :capybara_feature => tr
|
|||
|
||||
it "find one scheduled session" do
|
||||
find('#btn-refresh').trigger(:click)
|
||||
page.should have_no_selector('.paginate-wait')
|
||||
find('.paginate-wait')
|
||||
page.assert_selector('div#sessions-scheduled .found-session', count: 1)
|
||||
end
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ describe "Find Session", :js => true, :type => :feature, :capybara_feature => tr
|
|||
FactoryGirl.create(:music_session)
|
||||
end
|
||||
find('#btn-refresh').trigger(:click)
|
||||
page.should have_no_selector('.paginate-wait')
|
||||
find('.paginate-wait')
|
||||
page.assert_selector('div#sessions-scheduled .found-session', count: 20)
|
||||
|
||||
page.execute_script('jQuery("#findSession .content-body-scroller").scrollTo("100%",100)') #scroll to the bottom of the element
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ def verify_find_session_score(score, parent_selector, current_user, target_user)
|
|||
end
|
||||
|
||||
find('#btn-refresh').trigger(:click)
|
||||
page.should have_no_selector('.paginate-wait')
|
||||
find('.paginate-wait')
|
||||
page.assert_selector("div#{parent_selector} .found-session", count: 1)
|
||||
hoverable = find(".latency-value#{expected[:latency_badge_selector]}[data-user-id='#{target_user.id}']", text: expected[:latency_badge_text])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue