Commit 33ec4482 authored by Dan Davison's avatar Dan Davison

Merge branch '284669-improve-test-debugging' into 'master'

e2e: Raise an error if the API response doesn't have the expected field

See merge request gitlab-org/gitlab!48039
parents 208c0344 657664a2
...@@ -65,6 +65,9 @@ module QA ...@@ -65,6 +65,9 @@ module QA
deleted_pipeline = pipeline deleted_pipeline = pipeline
!pipeline.empty? !pipeline.empty?
end end
raise "Pipeline response does not have a 'message' key: #{deleted_pipeline}" unless deleted_pipeline&.key?('message')
expect(deleted_pipeline['message'].downcase).to have_content('404 not found') expect(deleted_pipeline['message'].downcase).to have_content('404 not found')
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment