Merge branch '3505-virtual-work-dir' refs #3505
[arvados.git] / apps / workbench / test / integration / pipeline_instances_test.rb
index 26426c5084992d5f502000913a060f61ba10964f..6385393b24f2c82cbb068e85aea4918d9844d379 100644 (file)
@@ -44,11 +44,11 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     within('.modal-dialog') do
       find('.btn', text: 'Add').click
     end
+    using_wait_time(Capybara.default_wait_time * 3) do
+      wait_for_ajax
+    end
 
-    click_link 'Pipeline templates'
-    wait_for_ajax
     click_link 'Jobs and pipelines'
-    wait_for_ajax
     find('tr[data-kind="arvados#pipelineInstance"]', text: 'New pipeline instance').
       find('a', text: 'Show').
       click
@@ -60,6 +60,8 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
       click
 
     within('.modal-dialog') do
+      assert(has_text?("Foo/bar pair"),
+             "pipeline input picker missing name of input")
       first('span', text: 'foo_tag').click
       find('button', text: 'OK').click
     end
@@ -117,6 +119,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
       click
 
     within('.modal-dialog') do
+      assert_selector 'button.dropdown-toggle', text: 'A Project'
       first('span', text: 'foo_tag').click
       find('button', text: 'OK').click
     end