appium_capybara 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc2e26ab1294eab55d56abd8504ffa8c9d813e34e3bc3cdf805e5f8d8d49e568
4
- data.tar.gz: deba446ebb13b125c0840640d0b5ea37f2ac728eb1a4b46433dd976028162ea5
3
+ metadata.gz: 0d511030e467a8e2a0bf1449736350310aed097724c650650e24d8f356a3e089
4
+ data.tar.gz: 86d9dd4fae49eee996d551e0eedf8f4a185ecc8a006196f010e003fb30851136
5
5
  SHA512:
6
- metadata.gz: 73d03f90e2364411a123a0db0f49e0c63216f3b435f3c9f312343ebc31aaafbcb40df6fede04d39e222a4541b6e6b45758dad7b9c48bb28973497c5aee8a0613
7
- data.tar.gz: 970e99f7ef8ff952034bbcb01d1118424dd752b3ce98f758b5a9e72ee945e40da5564f3340da31c7b54fb885d50cd9acd2786de6337947c1c318315e22e0f4d1
6
+ metadata.gz: abb720c6c3aae89ac0830a108560158b15f164adc725c800e876c38aab9cf1d26541b017bec83dca38ef211f1fdfea6fc29913f1ef7f6b91bbb64db45ea57d32
7
+ data.tar.gz: c2b6f0559dbece29e715f3c1cdfa3a269ce62bebd94dc19af5d7135b023319ceac40811c59ffcfd78323f2385cccef63a678cb1ae16a9d137e817306d560b272
@@ -47,7 +47,7 @@ jobs:
47
47
  appium driver install xcuitest
48
48
  - name: run Appium background
49
49
  run: |
50
- nohup appium --base-path=/wd/hub --log-timestamp --log-no-colors > appium.out 2>&1 &
50
+ nohup appium --log-timestamp --log-no-colors > appium.out 2>&1 &
51
51
 
52
52
  - name: Set up Ruby
53
53
  uses: ruby/setup-ruby@v1
@@ -55,9 +55,9 @@ jobs:
55
55
  ruby-version: 3.2
56
56
  - name: Run example
57
57
  run: |
58
- cd example
59
58
  bundle install
60
59
  bundle exec rspec spec/ios_example_spec.rb
60
+ working-directory: example
61
61
 
62
62
  - name: Upload appium.out
63
63
  if: ${{ always() }}
@@ -14,7 +14,7 @@ Capybara.register_driver(:appium) do |app|
14
14
  'appium:wdaLaunchTimeout' => 600_000,
15
15
  'appium:simulatorStartupTimeout' => 600_000
16
16
  },
17
- appium_lib: { server_url: 'http://localhost:4723/wd/hub' },
17
+ appium_lib: { server_url: 'http://localhost:4723' },
18
18
  global_driver: false
19
19
  end
20
20
 
@@ -1,16 +1,4 @@
1
1
  class Capybara::Queries::SelectorQuery < Capybara::Queries::BaseQuery
2
-
3
- # @api private
4
- def resolve_for(node, exact = nil)
5
- applied_filters.clear
6
- @resolved_node = node
7
- @resolved_count += 1
8
- node.synchronize do
9
- children = find_nodes_by_selector_format(node, exact).map(&method(:to_element))
10
- Capybara::Result.new(children, self)
11
- end
12
- end
13
-
14
2
  private
15
3
 
16
4
  # https://github.com/teamcapybara/capybara/blob/a7ebe1216f8d65f2e96c170437a732777353a81d/lib/capybara/queries/selector_query.rb#L227
@@ -21,13 +9,14 @@ class Capybara::Queries::SelectorQuery < Capybara::Queries::BaseQuery
21
9
  hints[:styles] = options[:style] if use_default_style_filter?
22
10
  hints[:position] = true if use_spatial_filter?
23
11
 
24
- if selector_format == :css
12
+ case selector_format
13
+ when :css
25
14
  if node.method(:find_css).arity != 1
26
15
  node.find_css(css, **hints)
27
16
  else
28
17
  node.find_css(css)
29
18
  end
30
- elsif selector_format == :xpath
19
+ when :xpath
31
20
  if node.method(:find_xpath).arity != 1
32
21
  node.find_xpath(xpath(exact), **hints)
33
22
  else
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Capybara
3
- VERSION = '3.1.0'.freeze unless defined? ::Appium::Capybara::VERSION
3
+ VERSION = '3.1.1'.freeze unless defined? ::Appium::Capybara::VERSION
4
4
  DATE = '2024-07-20'.freeze unless defined? ::Appium::Capybara::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,10 @@
1
+ #### v3.1.1 2024-07-20
2
+
3
+ - [b282393](https://github.com/appium/appium_capybara/commit/b28239336dbd2ba0c2ad5b5089b4c9666485b589) Release 3.1.1
4
+ - [34f8aa0](https://github.com/appium/appium_capybara/commit/34f8aa0c97f99ace1ab8ee291096ac1fafa9154f) chore: tune method definitions and test code (#75)
5
+ - [8b397c9](https://github.com/appium/appium_capybara/commit/8b397c904651c5c424b186f0bae247ee9907d2d8) docs: tweak the release note
6
+
7
+
1
8
  #### v3.1.0 2024-07-20
2
9
 
3
10
  - [20bb106](https://github.com/appium/appium_capybara/commit/20bb10687dbfe4ad634699948af0628793009cec) Release 3.1.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fly.49.89.over@gmail.com