10524: update tests to look for 'Run a process' button instead of 'Run a pipeline'
authorradhika <radhika@curoverse.com>
Mon, 21 Nov 2016 18:22:24 +0000 (13:22 -0500)
committerradhika <radhika@curoverse.com>
Mon, 21 Nov 2016 18:22:24 +0000 (13:22 -0500)
apps/workbench/test/integration/application_layout_test.rb
apps/workbench/test/integration/pipeline_instances_test.rb
apps/workbench/test/integration/projects_test.rb
apps/workbench/test/integration/work_units_test.rb
apps/workbench/test/performance/browsing_test.rb

index c4eb941b08894bb4cf58c88f75ba7e721e120f3f..1d68b38d98ec79a1f755a7f6f1a4b7ee2d3284ec 100644 (file)
@@ -251,7 +251,7 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
 
       assert_text 'Recent pipelines and processes' # seeing dashboard now
       within('.recent-processes-actions') do
-        assert page.has_link?('Run a pipeline')
+        assert page.has_link?('Run a process')
         assert page.has_link?('All processes')
       end
 
index 171580bbaa2bc9816a9ba1061e40142d0487c8e9..338280684ecd3a07a5f8e5f244c528a57d7b51b5 100644 (file)
@@ -391,7 +391,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     collection = api_fixture('collections', collection_fixture)
 
     # create a pipeline instance
-    find('.btn', text: 'Run a pipeline').click
+    find('.btn', text: 'Run a process').click
     within('.modal-dialog') do
       find('.selectable', text: template_name).click
       find('.btn', text: 'Next: choose inputs').click
index e5877aca6d1e88824b2575ba571eda21de403ee3..27eac8ab566ca916d42569c52ceba15e41e7fcd1 100644 (file)
@@ -746,7 +746,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
       project = api_fixture('groups')['aproject']
       visit page_with_token 'active', '/projects/' + project['uuid']
 
-      find('.btn', text: 'Run a pipeline').click
+      find('.btn', text: 'Run a process').click
 
       # in the chooser, verify preview and click Next button
       within('.modal-dialog') do
index f04616dd383ac49f927a544fb2e7d372c30b8acb..3f551a012ea62a692b5fdfcf0c99de0208b359bd 100644 (file)
@@ -118,7 +118,7 @@ class WorkUnitsTest < ActionDispatch::IntegrationTest
 
       within('.recent-processes-actions') do
         assert page.has_link?('All processes')
-        find('a', text: 'Run a pipeline').click
+        find('a', text: 'Run a process').click
       end
 
       # in the chooser, verify preview and click Next button
index d068ee2aaf08f3e7451ae817599e7dcaaca0d535..dcfd7d86e050532319662f13666db55dd69bf06c 100644 (file)
@@ -19,7 +19,7 @@ class BrowsingTest < WorkbenchPerformanceTest
   test "home page" do
     visit_page_with_token
     assert_text 'Dashboard'
-    assert_selector 'a', text: 'Run a pipeline'
+    assert_selector 'a', text: 'Run a process'
   end
 
   test "search for hash" do