class DiagnosticsTest < ActionDispatch::IntegrationTest
# Prepends workbench URL to the path provided and visits that page
class DiagnosticsTest < ActionDispatch::IntegrationTest
# Prepends workbench URL to the path provided and visits that page
# 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))
# 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))