summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb')
-rw-r--r--qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb b/qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb
index b1eb26f0d63..e1d8c50ab75 100644
--- a/qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb
+++ b/qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb
@@ -29,10 +29,12 @@ module QA
view_pipelines
Page::Project::Pipeline::Show.perform do |parent_pipeline|
- parent_pipeline.click_linked_job(project.name)
+ expect(parent_pipeline).to have_passed
+ parent_pipeline.retry_on_exception(sleep_interval: 1.0) do
+ parent_pipeline.click_linked_job(project.name)
+ end
expect(parent_pipeline).to have_job("child_job")
- expect(parent_pipeline).to have_passed
end
end
@@ -41,10 +43,12 @@ module QA
view_pipelines
Page::Project::Pipeline::Show.perform do |parent_pipeline|
- parent_pipeline.click_linked_job(project.name)
+ expect(parent_pipeline).to have_failed
+ parent_pipeline.retry_on_exception(sleep_interval: 1.0) do
+ parent_pipeline.click_linked_job(project.name)
+ end
expect(parent_pipeline).to have_job("child_job")
- expect(parent_pipeline).to have_failed
end
end