Commit 4b02b3cd authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'cablett-lduncalfe-add-aggregate-failures-flaky-test' into 'master'

Add Aggregate Failures block

See merge request gitlab-org/gitlab!23303
parents f8b6b786 54e8a26f
...@@ -275,6 +275,7 @@ RSpec.shared_examples 'thread comments' do |resource_name| ...@@ -275,6 +275,7 @@ RSpec.shared_examples 'thread comments' do |resource_name|
find("#{menu_selector} li", match: :first) find("#{menu_selector} li", match: :first)
items = all("#{menu_selector} li") items = all("#{menu_selector} li")
aggregate_failures do
expect(items.first).to have_content 'Comment' expect(items.first).to have_content 'Comment'
expect(items.first).to have_selector '.fa-check' expect(items.first).to have_selector '.fa-check'
expect(items.first['class']).to match 'droplab-item-selected' expect(items.first['class']).to match 'droplab-item-selected'
...@@ -287,6 +288,7 @@ RSpec.shared_examples 'thread comments' do |resource_name| ...@@ -287,6 +288,7 @@ RSpec.shared_examples 'thread comments' do |resource_name|
end end
end end
end end
end
if resource_name =~ /(issue|merge request)/ if resource_name =~ /(issue|merge request)/
describe "on a closed #{resource_name}" do describe "on a closed #{resource_name}" do
......
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