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