BigW Consortium Gitlab

Commit 1eade585 by Stan Hu

Fix trigger spec by surrounding the accept_confirm in the right place

parent ad73d242
...@@ -94,12 +94,13 @@ feature 'Triggers', js: true do ...@@ -94,12 +94,13 @@ feature 'Triggers', js: true do
scenario 'take trigger ownership' do scenario 'take trigger ownership' do
# See if "Take ownership" on trigger works post trigger creation # See if "Take ownership" on trigger works post trigger creation
find('a.btn-trigger-take-ownership').click
page.accept_confirm do page.accept_confirm do
expect(page.find('.flash-notice')).to have_content 'Trigger was re-assigned.' find('a.btn-trigger-take-ownership').click
expect(page.find('.triggers-list')).to have_content trigger_title
expect(page.find('.triggers-list .trigger-owner')).to have_content user.name
end end
expect(page.find('.flash-notice')).to have_content 'Trigger was re-assigned.'
expect(page.find('.triggers-list')).to have_content trigger_title
expect(page.find('.triggers-list .trigger-owner')).to have_content user.name
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