Fix negative Capybara assertion/matcher
authorTom Morris <tfmorris@curoverse.com>
Thu, 29 Sep 2016 16:33:49 +0000 (12:33 -0400)
committerTom Morris <tfmorris@curoverse.com>
Thu, 29 Sep 2016 16:34:21 +0000 (12:34 -0400)
apps/workbench/test/integration/pipeline_instances_test.rb

index 77001561cf238013ad48f9fc39b33ec2b72a2643..d97850c991f292eca07a8040a3a65c2b2b7d99f2 100644 (file)
@@ -57,7 +57,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     end
 
     # project chooser
-    within('.modal-dialog') do
+    within('.modal-dialog') do #FIXME: source of 1 test error
       find('.selectable', text: 'A Project').click
       find('button', text: 'Choose').click
     end
@@ -226,7 +226,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     template_uuid = api_fixture("pipeline_templates", template_name, "uuid")
     visit page_with_token("active", "/pipeline_templates/#{template_uuid}")
     click_on "Run this pipeline"
-    within(".modal-dialog") do
+    within(".modal-dialog") do # FIXME: source of 3 test errors
       # Set project for the new pipeline instance
       find(".selectable", text: project_name).click
       click_on "Choose"
@@ -453,7 +453,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest
     page.assert_selector 'a,button', text: 'Pause'
 
     # Since it is test env, no jobs are created to run. So, graph not visible
-    assert_not page.has_text? 'Graph'
+    assert page.has_no_text? 'Graph'
   end
 
   [