Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'minitest', '~> 5.0'
gem 'minitest-reporters', '~> 1.1'
gem 'parallel_tests'
gem 'rake', '~> 13.0'
gem 'rubocop', '1.84.2'
gem 'rubocop', '1.85.0'
gem 'simplecov'
gem 'steep', '~> 1.10.0'
gem 'webmock', '~> 3.26.0'
Expand Down
4 changes: 2 additions & 2 deletions test/functional/android/webdriver/device_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def test_page_source
assert s_source.include?('io.appium.android.apis')

if @@core.automation_name == :espresso
assert xml[1].elements.each('//*') { |v| v }.map(&:name).size >= 20 # rubocop:disable Lint/Void:
assert xml[1].elements.each('//*') { |v| v }.map(&:name).size >= 20
else
names = xml[2].elements.each('//*') { |v| v }.map(&:name) # rubocop:disable Lint/Void:
names = xml[2].elements.each('//*') { |v| v }.map(&:name)
assert_equal 'hierarchy', names[0]
assert names.size >= 5
end
Expand Down
4 changes: 2 additions & 2 deletions test/functional/ios/webdriver/device_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def test_page_source

assert !source.include?('AppiumAUT')
assert source.include?('XCUIElementTypeApplication type')
assert xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70 # rubocop:disable Lint/Void
assert xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70

# Roughly matching...
assert s_xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70 # rubocop:disable Lint/Void
assert s_xml[2].elements.each('//*') { |v| v }.map(&:name).size > 70
end

def test_location
Expand Down
Loading