From b4e495d7ee3ca9f9c816dd639dd2b57d85f6a5cf Mon Sep 17 00:00:00 2001 From: radhika Date: Wed, 10 Sep 2014 16:13:07 -0400 Subject: [PATCH] 2761: test in staging. --- apps/workbench/config/application.default.yml | 8 ++++---- apps/workbench/test/diagnostics/pipeline_test.rb | 13 ++++--------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/apps/workbench/config/application.default.yml b/apps/workbench/config/application.default.yml index 2106aa2222..6199aea876 100644 --- a/apps/workbench/config/application.default.yml +++ b/apps/workbench/config/application.default.yml @@ -162,12 +162,12 @@ common: # active: eu33jurqntstmwo05h1jr3eblmi961e802703y6657s8zb14r #diagnostics_testing_pipeline_fields: # pipeline with one input: - # template_uuid: zzzzz-p5p6p-rxj8d71854j9idn - # input_paths: [qr1hi-4zz18-wu1s009qgnvgjc9] + # template_uuid: 4xphq-p5p6p-gsw68qb7owx1q2h + # input_paths: [qr1hi-4zz18-n1o4i1j5fvz6npu] # max_wait_seconds: 100 # pipeline with two inputs: - # template_uuid: zzzzz-p5p6p-kfwus81of6y3ezs + # template_uuid: 4xphq-p5p6p-gsw68qb7owx1q2h # input_paths: [2051b5d448fbd489ab00bbdedbee1ffa+91, e5e440c9c486df057e1bf6a7feac25be+77/alignment_summary_metrics.txt] # max_wait_seconds: 200 # pipeline with no inputs: - # template_uuid: zzzzz-p5p6p-kfwus81of6y3ezs + # template_uuid: 4xphq-p5p6p-gsw68qb7owx1q2h diff --git a/apps/workbench/test/diagnostics/pipeline_test.rb b/apps/workbench/test/diagnostics/pipeline_test.rb index f5e903f94a..6101791c19 100644 --- a/apps/workbench/test/diagnostics/pipeline_test.rb +++ b/apps/workbench/test/diagnostics/pipeline_test.rb @@ -34,7 +34,7 @@ class PipelineTest < DiagnosticsTest # Choose input for the pipeline if pipeline_config['input_paths'].andand.any? - # This pipeline needs input. So, Run should be disabled + # This pipeline needs input. So, Run button should be disabled page.assert_selector 'a.disabled,button.disabled', text: 'Run' index = 0 @@ -45,14 +45,9 @@ class PipelineTest < DiagnosticsTest inputs_needed[0].click within('.modal-dialog') do look_for = pipeline_config['input_paths'][index] - found = page.has_text?(look_for) - if found - find('.selectable').click - else - fill_in('Search', with: look_for, exact: true) - wait_for_ajax - find('.selectable').click - end + fill_in('Search', with: look_for, exact: true) + wait_for_ajax + find('.selectable').click find('button', text: 'OK').click wait_for_ajax index += 1 -- 2.30.2