diff --git a/features/support/hooks.rb b/features/support/hooks.rb index c631d53a3a..3cd3aa3209 100644 --- a/features/support/hooks.rb +++ b/features/support/hooks.rb @@ -81,8 +81,6 @@ After do |scenario| # rubocop:disable Metrics/BlockLength next unless scenario.failed? # we don't care about working scenarios - next unless scenario.respond_to?(:feature) # example rows dont have feature - if (console_messages = page.driver.try(:console_messages)) puts "Console Messages:", *console_messages @@ -93,7 +91,7 @@ end - folder = Pathname.new(scenario.feature.file) + folder = Pathname.new(scenario.location.file) if folder.absolute? folder = folder.relative_path_from(Rails.root) end @@ -139,7 +137,6 @@ if (logs = page.driver.browser.manage.logs.get(:browser)).present? entries = logs.map{ |entry| "[#{entry.level}] #{entry.message}" } - puts *entries console_log.open('w') do |f| f.puts *entries end diff --git a/features/support/screenshot.png b/features/support/screenshot.png deleted file mode 100644 index 639b0d0d59..0000000000 Binary files a/features/support/screenshot.png and /dev/null differ