Sha256: 9a425a62f5d817f17b8df33175068890252405956691a6d9f12fb28cfa1df643

Contents?: true

Size: 958 Bytes

Versions: 17

Compression:

Stored size: 958 Bytes

Contents

module SMARTAppLaunch
  class AppLaunchTest < Inferno::Test
    title 'EHR server redirects client browser to Inferno app launch URI'
    description %(
      Client browser sent from EHR server to app launch URI of client app as
      described in SMART EHR Launch Sequence.
    )
    id :smart_app_launch

    input :url
    receives_request :launch

    config options: { launch_uri: "#{Inferno::Application['base_url']}/custom/smart/launch" }

    def wait_message
      return instance_exec(&config.options[:launch_message_proc]) if config.options[:launch_message_proc].present?

      %(
        ### #{self.class.parent&.parent&.title}

        Waiting for Inferno to be launched from the EHR.

        Tests will resume once Inferno receives a launch request at
        `#{config.options[:launch_uri]}` with an `iss` of `#{url}`.
      )
    end

    run do
      wait(
        identifier: url,
        message: wait_message
      )
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
smart_app_launch_test_kit-0.5.0 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.4.6 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.4.5 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.4.4 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.4.3 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.4.2 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.4.1 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.4.0 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.3.0 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.2.2 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.2.1 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.2.0 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.1.8 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.1.7 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.1.6 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.1.5 lib/smart_app_launch/app_launch_test.rb
smart_app_launch_test_kit-0.1.4 lib/smart_app_launch/app_launch_test.rb