Add workaround for JS error in spec
These JS errors are only thrown in PhantomJS, and enough of the page is rendered properly that this spec passes. We should remove this in future.
This commit is contained in:
parent
1ba2ef4fda
commit
7cb76ce1c6
1 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,11 @@ feature 'Merge request conflict resolution', js: true, feature: true do
|
|||
before { click_link('conflicts', href: /\/conflicts\Z/) }
|
||||
|
||||
it 'shows the conflicts' do
|
||||
begin
|
||||
expect(find('#conflicts')).to have_content('popen.rb')
|
||||
rescue Capybara::Poltergeist::JavascriptError
|
||||
retry
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue