appium_capybara 3.1.1 → 3.1.2

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: 0d511030e467a8e2a0bf1449736350310aed097724c650650e24d8f356a3e089
4
- data.tar.gz: 86d9dd4fae49eee996d551e0eedf8f4a185ecc8a006196f010e003fb30851136
3
+ metadata.gz: 6dfeb1dbf271c2b35dd426ec072315062784b7d991fd0da920b2a339357b2a72
4
+ data.tar.gz: 5d3d74ac12f08353114ad467e01b3259055f7291f56ab36cbc41d8be9e3cff03
5
5
  SHA512:
6
- metadata.gz: abb720c6c3aae89ac0830a108560158b15f164adc725c800e876c38aab9cf1d26541b017bec83dca38ef211f1fdfea6fc29913f1ef7f6b91bbb64db45ea57d32
7
- data.tar.gz: c2b6f0559dbece29e715f3c1cdfa3a269ce62bebd94dc19af5d7135b023319ceac40811c59ffcfd78323f2385cccef63a678cb1ae16a9d137e817306d560b272
6
+ metadata.gz: 573c0e9df456d2ad1b5cbffe634d20b9a5586047d02ffb0821af321edf34866c3fa4c14a49989c4fbe61a52174191d32356e6c67a71d21572d31f1b9835230f3
7
+ data.tar.gz: 178e1d615a06f09aa3fa6d9ed40a60799d8dc8697988a261d3f534dc14be138f0a80f491e9cf750efdcd46a09fcbdc37fe20ce14858b50286bc94a87a43fcb32
@@ -8,8 +8,9 @@ on:
8
8
  pull_request:
9
9
  branches: [ "master" ]
10
10
 
11
- permissions:
12
- contents: read
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13
+ cancel-in-progress: true
13
14
 
14
15
  jobs:
15
16
  test:
@@ -47,7 +48,7 @@ jobs:
47
48
  appium driver install xcuitest
48
49
  - name: run Appium background
49
50
  run: |
50
- nohup appium --log-timestamp --log-no-colors > appium.out 2>&1 &
51
+ nohup appium --log-timestamp --log-no-colors > appium.log 2>&1 &
51
52
 
52
53
  - name: Set up Ruby
53
54
  uses: ruby/setup-ruby@v1
@@ -59,9 +60,9 @@ jobs:
59
60
  bundle exec rspec spec/ios_example_spec.rb
60
61
  working-directory: example
61
62
 
62
- - name: Upload appium.out
63
+ - name: Upload appium.log
63
64
  if: ${{ always() }}
64
65
  uses: actions/upload-artifact@v4
65
66
  with:
66
- path: appium.out
67
+ path: appium.log
67
68
 
@@ -30,6 +30,7 @@ describe 'UICatalog smoke test' do
30
30
  Capybara.current_session.driver.appium_driver.find_element(:name, 'Text Fields').click
31
31
 
32
32
  e = capy_driver.find_custom(:predicate, 'value == "Placeholder text"').first
33
+ e.inspect
33
34
  e.send_keys [:shift, :end]
34
35
 
35
36
  e = Capybara.current_session.find(:xpath, '//XCUIElementTypeTextField[@value=""]')
@@ -46,9 +46,8 @@ module Appium::Capybara
46
46
 
47
47
  # override
48
48
  def reset!
49
- # invoking the browser method after the browser has closed will cause it to relaunch
50
- # use @appium_driver to avoid the relaunch.
51
- @appium_driver.reset if @appium_driver
49
+ # Re-create a new session.
50
+ @appium_driver&.restart
52
51
  end
53
52
 
54
53
  # @deprecated This method is being removed
@@ -1,6 +1,8 @@
1
1
  class Capybara::Node::Element
2
2
  # Override
3
3
  def inspect
4
+ return super unless @base.respond_to? :name
5
+ # appium specific
4
6
  %(#<Capybara::Node::Element name=#{@base.name}>)
5
7
  end
6
8
  end
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Capybara
3
- VERSION = '3.1.1'.freeze unless defined? ::Appium::Capybara::VERSION
4
- DATE = '2024-07-20'.freeze unless defined? ::Appium::Capybara::DATE
3
+ VERSION = '3.1.2'.freeze unless defined? ::Appium::Capybara::VERSION
4
+ DATE = '2024-07-23'.freeze unless defined? ::Appium::Capybara::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### v3.1.2 2024-07-23
2
+
3
+ - [ea74429](https://github.com/appium/appium_capybara/commit/ea74429e86e01be1688cf0250c25f90e2388c789) Release 3.1.2
4
+ - [d214184](https://github.com/appium/appium_capybara/commit/d214184a35227a29cdf6b8e6f7e8cd745506ba4a) fix: replace reset with restart as similar behavior, fix inspect to respect super (#78)
5
+
6
+
1
7
  #### v3.1.1 2024-07-20
2
8
 
3
9
  - [b282393](https://github.com/appium/appium_capybara/commit/b28239336dbd2ba0c2ad5b5089b4c9666485b589) Release 3.1.1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - fly.49.89.over@gmail.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-20 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib