Skip to content

Commit

Permalink
Fix spider test
Browse files Browse the repository at this point in the history
the id `header-logo` was used only in Bento
  • Loading branch information
David Kang committed Sep 2, 2019
1 parent 3fac957 commit a805098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/test/functional/webui/spider_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def crawl
# puts "ignoring #{page.response_headers.inspect}"
next
end
page.first(:id, 'header-logo')
page.first('.navbar-brand')
rescue Timeout::Error
next
rescue ActionController::RoutingError
Expand All @@ -122,7 +122,7 @@ def crawl
# puts "HARDCORE!! #{theone}"
end
next unless body
flashes = body.css('div#flash-messages div.ui-state-error')
flashes = body.css('div#flash div.alert-error')
unless flashes.empty?
raiseit("flash alert #{flashes.first.content.strip}", theone)
end
Expand Down

0 comments on commit a805098

Please sign in to comment.