instance method display_image

Ruby on Rails 6.0.6

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

display_image()

No documentation comment.

Source
# File actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb, line 68
          def display_image
            message = +"[Screenshot]: #{image_path}\n"

            case output_type
            when "artifact"
              message << "\e]1338;url=artifact://#{absolute_image_path}\a\n"
            when "inline"
              name = inline_base64(File.basename(absolute_image_path))
              image = inline_base64(File.read(absolute_image_path))
              message << "\e]1337;File=name=#{name};height=400px;inline=1:#{image}\a\n"
            end

            message
          end

Defined in actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb line 68 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelper

Type at least 2 characters to search.

↑↓ navigate · open · esc close