Skip to content

Commit

Permalink
ruby: matc_root and first_match_only should be string (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Oct 14, 2023
1 parent d8c9eb7 commit 5a13ce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions finder/ruby/lib/appium_flutter_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions finder/ruby/test/appium_flutter_finder_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AppiumFlutterFinderTest < Minitest::Test

def test_by_ancestor
assert_equal(
'eyJmaW5kZXJUeXBlIjoiQW5jZXN0b3IiLCJtYXRjaFJvb3QiOmZhbHNlLCJmaXJzdE1hdGNoT25seSI6dHJ1ZSwib2YiOiJ7XCJmaW5kZXJUeXBlXCI6XCJBbmNlc3RvclwiLFwibWF0Y2hSb290XCI6ZmFsc2UsXCJmaXJzdE1hdGNoT25seVwiOmZhbHNlLFwib2ZcIjpcIntcXFwiZmluZGVyVHlwZVxcXCI6XFxcIlBhZ2VCYWNrXFxcIn1cIixcIm1hdGNoaW5nXCI6XCJ7XFxcImZpbmRlclR5cGVcXFwiOlxcXCJQYWdlQmFja1xcXCJ9XCJ9IiwibWF0Y2hpbmciOiJ7XCJmaW5kZXJUeXBlXCI6XCJBbmNlc3RvclwiLFwibWF0Y2hSb290XCI6ZmFsc2UsXCJmaXJzdE1hdGNoT25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=',
by_descendant(
serialized_finder: by_descendant(
serialized_finder: page_back,
Expand Down

0 comments on commit 5a13ce8

Please sign in to comment.