ios_tests/lib/ios/specs/ios/element/textfield.rb in appium_lib-9.2.0 vs ios_tests/lib/ios/specs/ios/element/textfield.rb in appium_lib-9.3.0
- old
+ new
@@ -69,11 +69,13 @@
end
t 'textfield type' do
# Regular send keys triggers the keyboard and doesn't dismiss
keyboard_must_not_exist unless UI::Inventory.xcuitest? # xcuitest doesn't support JS command
- textfield(1).send_keys 'ok'
+ textfield(1).send_keys "o'k"
keyboard_must_exist unless UI::Inventory.xcuitest? # xcuitest doesn't support JS command
+
+ find_exact("o'k").text.must_equal "o'k"
unless UI::Inventory.xcuitest?
# type should not dismiss the keyboard
message = 'type test type'
textfield(1).type message