assert_not page.has_text? 'Graph'
end
+ test 'view pipeline with job and see graph' do
+ visit page_with_token('active_trustedclient')
+
+ visit '/pipeline_instances'
+ assert page.has_text? 'pipeline_with_job'
+
+ find('a', text: 'pipeline_with_job').click
+
+ # since the pipeline component has a job, expect to see the graph
+ assert page.has_text? 'Graph'
+ click_link 'Graph'
+ assert page.has_text? 'script_version'
+ end
+
end
foo:
script: foo
script_version: master
+
+has_job:
+ name: pipeline_with_job
+ state: Ready
+ uuid: zzzzz-d1hrv-1yfj6xkidf2muk3
+ owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+ owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+ components:
+ foo:
+ script: foo
+ script_version: master
+ script_parameters: {}
+ job: {
+ uuid: zzzzz-8i9sb-pshmckwoma9plh7,
+ script_version: master
+ }