Commit 54e8a26f authored by charlieablett's avatar charlieablett

Add Aggregate Failures block

- To help diagnose a flaky feature spec
parent f347c4bd
...@@ -275,6 +275,7 @@ shared_examples 'thread comments' do |resource_name| ...@@ -275,6 +275,7 @@ 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 @@ shared_examples 'thread comments' do |resource_name| ...@@ -287,6 +288,7 @@ 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