diff --git a/lib/appium_lib_core/android/device/emulator.rb b/lib/appium_lib_core/android/device/emulator.rb index 47903053..15c2055a 100644 --- a/lib/appium_lib_core/android/device/emulator.rb +++ b/lib/appium_lib_core/android/device/emulator.rb @@ -119,7 +119,10 @@ def gsm_call(phone_number:, action:) def gsm_signal(signal_strength) raise "#{signal_strength} should be member of #{GSM_SIGNALS} " if GSM_SIGNALS[signal_strength.to_sym].nil? - execute(:gsm_signal, {}, { signalStrength: GSM_SIGNALS[signal_strength], signalStrengh: GSM_SIGNALS[signal_strength] }) + execute(:gsm_signal, {}, { + signalStrength: GSM_SIGNALS[signal_strength], + signalStrengh: GSM_SIGNALS[signal_strength] + }) end end diff --git a/test/unit/android/device/mjsonwp/commands_test.rb b/test/unit/android/device/mjsonwp/commands_test.rb index 4741168d..a11ce81a 100644 --- a/test/unit/android/device/mjsonwp/commands_test.rb +++ b/test/unit/android/device/mjsonwp/commands_test.rb @@ -339,7 +339,10 @@ def test_gsm_call def test_gsm_signal stub_request(:post, "#{SESSION}/appium/device/gsm_signal") - .with(body: { signalStrength: ::Appium::Core::Android::Device::Emulator::GSM_SIGNALS[:good] }.to_json) + .with(body: { + signalStrength: ::Appium::Core::Android::Device::Emulator::GSM_SIGNALS[:good], + signalStrengh: ::Appium::Core::Android::Device::Emulator::GSM_SIGNALS[:good] + }.to_json) .to_return(headers: HEADER, status: 200, body: { value: '' }.to_json) @driver.gsm_signal :good diff --git a/test/unit/android/device/w3c/commands_test.rb b/test/unit/android/device/w3c/commands_test.rb index 9a048f81..40ba508d 100644 --- a/test/unit/android/device/w3c/commands_test.rb +++ b/test/unit/android/device/w3c/commands_test.rb @@ -340,7 +340,10 @@ def test_gsm_call def test_gsm_signal stub_request(:post, "#{SESSION}/appium/device/gsm_signal") - .with(body: { signalStrength: ::Appium::Core::Android::Device::Emulator::GSM_SIGNALS[:good] }.to_json) + .with(body: { + signalStrength: ::Appium::Core::Android::Device::Emulator::GSM_SIGNALS[:good], + signalStrengh: ::Appium::Core::Android::Device::Emulator::GSM_SIGNALS[:good] + }.to_json) .to_return(headers: HEADER, status: 200, body: { value: '' }.to_json) @driver.gsm_signal :good