X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9f6bfd78b88486d4b3384b4be05c1f5e4f546a9c..ad6dd2b5553d7ab2f7f800483c4aafc3db6ebb9a:/apps/workbench/test/integration/pipeline_instances_test.rb diff --git a/apps/workbench/test/integration/pipeline_instances_test.rb b/apps/workbench/test/integration/pipeline_instances_test.rb index 8afa0b88e5..732e360999 100644 --- a/apps/workbench/test/integration/pipeline_instances_test.rb +++ b/apps/workbench/test/integration/pipeline_instances_test.rb @@ -37,30 +37,6 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest DateTime.parse(utc).to_time end - if false - # No need to test (or mention) these all the time. If they start - # working (without need_selenium) then some real tests might not - # need_selenium any more. - - test 'phantomjs DST' do - skip '^^' - t0s = '3/8/2015, 01:59 AM' - t1s = '3/8/2015, 03:01 AM' - t0 = parse_browser_timestamp t0s - t1 = parse_browser_timestamp t1s - assert_equal 120, t1-t0, "'#{t0s}' to '#{t1s}' was reported as #{t1-t0} seconds, should be 120" - end - - test 'phantomjs DST 2' do - skip '^^' - t0s = '2015-03-08T10:43:00Z' - t1s = '2015-03-09T03:43:00Z' - t0 = parse_browser_timestamp page.evaluate_script("new Date('#{t0s}').toLocaleString()") - t1 = parse_browser_timestamp page.evaluate_script("new Date('#{t1s}').toLocaleString()") - assert_equal 17*3600, t1-t0, "'#{t0s}' to '#{t1s}' was reported as #{t1-t0} seconds, should be #{17*3600} (17 hours)" - end - end - test 'view pipeline with job and see graph' do visit page_with_token('active_trustedclient', '/pipeline_instances') assert page.has_text? 'pipeline_with_job' @@ -73,24 +49,6 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest page.assert_selector "#provenance_graph" end - test 'pipeline description' do - visit page_with_token('active_trustedclient', '/pipeline_instances') - assert page.has_text? 'pipeline_with_job' - - find('a', text: 'pipeline_with_job').click - - within('.arv-description-as-subtitle') do - find('.fa-pencil').click - find('.editable-input textarea').set('*Textile description for pipeline instance*') - find('.editable-submit').click - end - wait_for_ajax - - # verify description - assert page.has_no_text? '*Textile description for pipeline instance*' - assert page.has_text? 'Textile description for pipeline instance' - end - test "JSON popup available for strange components" do uuid = api_fixture("pipeline_instances")["components_is_jobspec"]["uuid"] visit page_with_token("active", "/pipeline_instances/#{uuid}")