3088: so sweet to have a test AND one that fails when code is updated.
authorradhika <radhika@curoverse.com>
Thu, 26 Jun 2014 19:48:05 +0000 (15:48 -0400)
committerradhika <radhika@curoverse.com>
Thu, 26 Jun 2014 19:48:05 +0000 (15:48 -0400)
apps/workbench/test/integration/pipeline_instances_test.rb

index e33944563ab58c0e7c75c946f961d792a008924b..5071fb47666bee5fe73813a3e50cc93d9b3580a2 100644 (file)
@@ -18,18 +18,17 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
       find('a,button', text: 'Run').click
     end
 
+    # project chooser
+    within('.modal-dialog') do
+      find('.selectable', text: 'A Project').click
+      find('button', text: 'Choose').click
+    end
+
     # This pipeline needs input. So, Run should be disabled
     page.assert_selector 'a.disabled,button.disabled', text: 'Run'
 
     instance_page = current_path
 
-    # put this pipeline instance in "A Project"
-    find('button', text: 'Choose a project...').click
-    within('.modal-dialog') do
-      find('.selectable', text: 'A Project').click
-      find('button', text: 'Move').click
-    end
-
     # Go over to the collections page and select something
     visit '/collections'
     within('tr', text: 'GNU_General_Public_License') do