X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/981c7264123f24a1873f2692a72f012ac43e726b..02d728b87a397a7093827de5046e62ce50c4019d:/apps/workbench/test/integration/websockets_test.rb diff --git a/apps/workbench/test/integration/websockets_test.rb b/apps/workbench/test/integration/websockets_test.rb index 45398f9096..1ae9010983 100644 --- a/apps/workbench/test/integration/websockets_test.rb +++ b/apps/workbench/test/integration/websockets_test.rb @@ -65,7 +65,8 @@ class WebsocketTest < ActionDispatch::IntegrationTest assert_text '1001 hello' # Check that new value of scrollTop is greater than the old one - assert page.evaluate_script("$('#event_log_div').scrollTop()") > old_top + new_top = page.evaluate_script("$('#event_log_div').scrollTop()") + assert_operator new_top, :>, old_top # Now scroll to 30 pixels from the top page.execute_script "$('#event_log_div').scrollTop(30)"