From 5a13ce8234b7caa6e703315fa8ff83c33d4e1c54 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 14 Oct 2023 01:21:42 -0700 Subject: [PATCH] ruby: matc_root and first_match_only should be string (#590) --- finder/ruby/lib/appium_flutter_finder.rb | 8 ++++---- finder/ruby/test/appium_flutter_finder_test.rb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/finder/ruby/lib/appium_flutter_finder.rb b/finder/ruby/lib/appium_flutter_finder.rb index b0432e56..6fbffe38 100644 --- a/finder/ruby/lib/appium_flutter_finder.rb +++ b/finder/ruby/lib/appium_flutter_finder.rb @@ -24,8 +24,8 @@ def by_ancestor(serialized_finder:, matching:, match_root: false, first_match_on type: 'Ancestor', serialized_finder: serialized_finder, matching: matching, - match_root: match_root, - first_match_only: first_match_only + match_root: match_root.to_s, + first_match_only: first_match_only.to_s ) end @@ -34,8 +34,8 @@ def by_descendant(serialized_finder:, matching:, match_root: false, first_match_ type: 'Descendant', serialized_finder: serialized_finder, matching: matching, - match_root: match_root, - first_match_only: first_match_only + match_root: match_root.to_s, + first_match_only: first_match_only.to_s ) end diff --git a/finder/ruby/test/appium_flutter_finder_test.rb b/finder/ruby/test/appium_flutter_finder_test.rb index 12113eb7..8e294ef3 100644 --- a/finder/ruby/test/appium_flutter_finder_test.rb +++ b/finder/ruby/test/appium_flutter_finder_test.rb @@ -6,7 +6,7 @@ class AppiumFlutterFinderTest < Minitest::Test def test_by_ancestor assert_equal( - 'eyJmaW5kZXJUeXBlIjoiQW5jZXN0b3IiLCJtYXRjaFJvb3QiOmZhbHNlLCJmaXJzdE1hdGNoT25seSI6dHJ1ZSwib2YiOiJ7XCJmaW5kZXJUeXBlXCI6XCJBbmNlc3RvclwiLFwibWF0Y2hSb290XCI6ZmFsc2UsXCJmaXJzdE1hdGNoT25seVwiOmZhbHNlLFwib2ZcIjpcIntcXFwiZmluZGVyVHlwZVxcXCI6XFxcIlBhZ2VCYWNrXFxcIn1cIixcIm1hdGNoaW5nXCI6XCJ7XFxcImZpbmRlclR5cGVcXFwiOlxcXCJQYWdlQmFja1xcXCJ9XCJ9IiwibWF0Y2hpbmciOiJ7XCJmaW5kZXJUeXBlXCI6XCJBbmNlc3RvclwiLFwibWF0Y2hSb290XCI6ZmFsc2UsXCJmaXJzdE1hdGNoT25seVwiOmZhbHNlLFwib2ZcIjpcIntcXFwiZmluZGVyVHlwZVxcXCI6XFxcIlBhZ2VCYWNrXFxcIn1cIixcIm1hdGNoaW5nXCI6XCJ7XFxcImZpbmRlclR5cGVcXFwiOlxcXCJQYWdlQmFja1xcXCJ9XCJ9In0=', + 'eyJmaW5kZXJUeXBlIjoiQW5jZXN0b3IiLCJtYXRjaFJvb3QiOiJmYWxzZSIsImZpcnN0TWF0Y2hPbmx5IjoidHJ1ZSIsIm9mIjoie1wiZmluZGVyVHlwZVwiOlwiQW5jZXN0b3JcIixcIm1hdGNoUm9vdFwiOlwiZmFsc2VcIixcImZpcnN0TWF0Y2hPbmx5XCI6XCJmYWxzZVwiLFwib2ZcIjpcIntcXFwiZmluZGVyVHlwZVxcXCI6XFxcIlBhZ2VCYWNrXFxcIn1cIixcIm1hdGNoaW5nXCI6XCJ7XFxcImZpbmRlclR5cGVcXFwiOlxcXCJQYWdlQmFja1xcXCJ9XCJ9IiwibWF0Y2hpbmciOiJ7XCJmaW5kZXJUeXBlXCI6XCJBbmNlc3RvclwiLFwibWF0Y2hSb290XCI6XCJmYWxzZVwiLFwiZmlyc3RNYXRjaE9ubHlcIjpcImZhbHNlXCIsXCJvZlwiOlwie1xcXCJmaW5kZXJUeXBlXFxcIjpcXFwiUGFnZUJhY2tcXFwifVwiLFwibWF0Y2hpbmdcIjpcIntcXFwiZmluZGVyVHlwZVxcXCI6XFxcIlBhZ2VCYWNrXFxcIn1cIn0ifQ==', by_ancestor( serialized_finder: by_ancestor( serialized_finder: page_back, @@ -23,7 +23,7 @@ def test_by_ancestor def test_by_descendant assert_equal( - 'eyJmaW5kZ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