Merge branch 'master' into 4227-date-display
[arvados.git] / apps / workbench / test / integration / pipeline_instances_test.rb
index 77aaf790130cb3e433e1a66c13298af139a181ad..65479339941332548b471819a0a5d087a740b402 100644 (file)
@@ -313,9 +313,9 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     assert_not page.has_text? 'Graph'
   end
 
-  (1..20).each do |index|
-    test "pipeline dates #{index}" do
-      visit page_with_token("user1_with_load", "/pipeline_instances/zzzzz-d1hrv-25pipelines0#{index.to_s.rjust(3, '0')}")
+  (1..10).each do |index|
+    test "pipeline start and finish time display #{index}" do
+      visit page_with_token("user1_with_load", "/pipeline_instances/zzzzz-d1hrv-10pipelines0#{index.to_s.rjust(3, '0')}")
       assert page.has_text? 'This pipeline started at'
 
       page_text = page.text
@@ -337,7 +337,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
         finished_time += 12*60*60 
       end
 
-      # ran for time display is of the format 4 minutes 52 seconds
+      # ran_for time display is of the format "4 minutes 52 seconds"
       run_time = ran_for[-1].to_i
       if ran_for[-2].andand.start_with?('minute')
         run_time += ran_for[-3].to_i*60 if ran_for[-3]