From: radhika Date: Wed, 17 Sep 2014 14:10:16 +0000 (-0400) Subject: 2761: added some comments X-Git-Tag: 1.1.0~2195^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/735f1ed1f3c9bf4d876981ccd94a0ad723300d18 2761: added some comments --- diff --git a/apps/workbench/test/diagnostics_test_helper.rb b/apps/workbench/test/diagnostics_test_helper.rb index 392e7d0fd0..01d351a2b6 100644 --- a/apps/workbench/test/diagnostics_test_helper.rb +++ b/apps/workbench/test/diagnostics_test_helper.rb @@ -7,6 +7,8 @@ require 'yaml' class DiagnosticsTest < ActionDispatch::IntegrationTest + # Prepends workbench URL to the path provided and visits that page + # Expects path parameters such as "/collections/" def visit_page_with_token token_name, path='/' workbench_url = Rails.configuration.arvados_workbench_url if workbench_url.end_with? '/' @@ -16,6 +18,7 @@ class DiagnosticsTest < ActionDispatch::IntegrationTest visit page_with_token(tokens[token_name], (workbench_url + path)) end + # Looks for the text_to_look_for for up to the max_time provided def wait_until_page_has text_to_look_for, max_time=30 max_time = 30 if (!max_time || (max_time.to_s != max_time.to_i.to_s)) Timeout.timeout(max_time) do