appium_capybara 3.0.0 → 3.1.0

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: 9257abc090d27db22f3294d0809dffc5bdbae04ac14db612cab439a97fb60471
4
- data.tar.gz: 201533d0e288732745a85af77b574af035b9f08e00f88c5a7863fc380e328d0f
3
+ metadata.gz: dc2e26ab1294eab55d56abd8504ffa8c9d813e34e3bc3cdf805e5f8d8d49e568
4
+ data.tar.gz: deba446ebb13b125c0840640d0b5ea37f2ac728eb1a4b46433dd976028162ea5
5
5
  SHA512:
6
- metadata.gz: e0f7b84b800f0e6042bab1d87d7681d54143684521d08df03c61ba8a798339a4face35be8971d1b000d550816bfda54420c742edad4d66e44050a1396ef2fc65
7
- data.tar.gz: 98aa986334aee3ae33fe4f9a7053d8a5ba86df55a59ad0a7bc84e4cfcb4e8931390ef35e1c17b6fd8121076a1ec0299a5ba3f0c375a0eca2e9f54c5ea7785c95
6
+ metadata.gz: 73d03f90e2364411a123a0db0f49e0c63216f3b435f3c9f312343ebc31aaafbcb40df6fede04d39e222a4541b6e6b45758dad7b9c48bb28973497c5aee8a0613
7
+ data.tar.gz: 970e99f7ef8ff952034bbcb01d1118424dd752b3ce98f758b5a9e72ee945e40da5564f3340da31c7b54fb885d50cd9acd2786de6337947c1c318315e22e0f4d1
@@ -1,6 +1,8 @@
1
1
  name: Run example
2
2
 
3
3
  on:
4
+ # Run by manual at this time
5
+ workflow_dispatch:
4
6
  push:
5
7
  branches: [ "master" ]
6
8
  pull_request:
@@ -12,42 +14,54 @@ permissions:
12
14
  jobs:
13
15
  test:
14
16
 
15
- runs-on: macos-11
17
+ runs-on: macos-14
18
+
16
19
  env:
17
- PLATFORM_VERSION: '15.2'
18
- XCODE_VERSION: '13.2'
20
+ PLATFORM_VERSION: '17.4'
21
+ XCODE_VERSION: '15.3'
22
+ DEVICE_NAME: iPhone 15 Plus
19
23
 
20
24
  steps:
21
25
  - uses: actions/checkout@v3
22
- - uses: maxim-lobanov/setup-xcode@v1
26
+
27
+ - name: Install Node.js
28
+ uses: actions/setup-node@v3
29
+ with:
30
+ node-version: 'lts/*'
31
+
32
+ - name: Select Xcode
33
+ uses: maxim-lobanov/setup-xcode@v1
23
34
  with:
24
35
  xcode-version: ${{ env.XCODE_VERSION }}
25
- - run: xcrun simctl list
26
- - name: Set up Appium env
27
- uses: actions/setup-node@v3
36
+ - run: defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false
37
+
38
+ - uses: futureware-tech/simulator-action@v3
28
39
  with:
29
- node-version: 16
30
- check-latest: true
40
+ # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
41
+ model: ${{ env.DEVICE_NAME }}
42
+ os_version: ${{ env.PLATFORM_VERSION }}
43
+
31
44
  - name: Install Appium XCUITest
32
45
  run: |
33
- npm install -g appium@next
46
+ npm install -g appium
34
47
  appium driver install xcuitest
35
48
  - name: run Appium background
36
49
  run: |
37
50
  nohup appium --base-path=/wd/hub --log-timestamp --log-no-colors > appium.out 2>&1 &
51
+
38
52
  - name: Set up Ruby
39
- uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3
53
+ uses: ruby/setup-ruby@v1
40
54
  with:
41
- ruby-version: 3.1
42
- bundler-cache: true
55
+ ruby-version: 3.2
43
56
  - name: Run example
44
57
  run: |
45
58
  cd example
46
59
  bundle install
47
60
  bundle exec rspec spec/ios_example_spec.rb
61
+
48
62
  - name: Upload appium.out
49
- uses: actions/upload-artifact@v3.1.1
50
- if: failure()
63
+ if: ${{ always() }}
64
+ uses: actions/upload-artifact@v4
51
65
  with:
52
66
  path: appium.out
53
67
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.homepage = 'https://github.com/appium/appium_capybara'
20
20
  s.require_paths = ['lib']
21
21
 
22
- s.add_runtime_dependency 'appium_lib', '~> 12.0.0'
22
+ s.add_runtime_dependency 'appium_lib', '>= 13.0.0'
23
23
  s.add_runtime_dependency 'capybara', '~> 3.36'
24
24
 
25
25
  s.add_development_dependency 'appium_thor', '~> 2.0'
@@ -7,11 +7,12 @@ require 'site_prism'
7
7
  Capybara.register_driver(:appium) do |app|
8
8
  Appium::Capybara::Driver.new app, capabilities: {
9
9
  'platformName' => 'ios',
10
- 'platformVersion' => ENV['PLATFORM_VERSION'] || '16.0',
11
- 'appium:deviceName' => 'iPhone 12',
10
+ 'platformVersion' => ENV['PLATFORM_VERSION'] || '17.4',
11
+ 'appium:deviceName' => ENV['DEVICE_NAME'] || 'iPhone 15 Plus',
12
12
  'appium:automationName' => 'xcuitest',
13
13
  'appium:app' => File.expand_path('UICatalog.app.zip'),
14
- 'appium:wdaLaunchTimeout' => 600000,
14
+ 'appium:wdaLaunchTimeout' => 600_000,
15
+ 'appium:simulatorStartupTimeout' => 600_000
15
16
  },
16
17
  appium_lib: { server_url: 'http://localhost:4723/wd/hub' },
17
18
  global_driver: false
@@ -2,8 +2,8 @@ module Pages
2
2
  class Home < ::SitePrism::Page
3
3
  # UIANavigationBar
4
4
  # name: UICatalog
5
- elements :navigation_bar, :accessibility_id, 'UICatalog'
5
+ elements :navigation_bar, :accessibility_id, 'UIKitCatalog'
6
6
 
7
- section :action_sheets_section, Sections::Sheets, :name, 'Action Sheets'
7
+ section :action_sheets_section, Sections::Sheets, :name, 'Alert Views'
8
8
  end
9
9
  end
@@ -15,14 +15,14 @@ describe 'UICatalog smoke test' do
15
15
  # Call appium driver's methods
16
16
  Capybara.current_session.driver.appium_driver.find_element(:name, 'Buttons').click
17
17
  Capybara.current_session.driver.appium_driver.wait do
18
- expect(capy_driver.find_custom(:class_name, 'XCUIElementTypeButton').size).to be 6
18
+ expect(capy_driver.find_custom(:class_name, 'XCUIElementTypeButton').size).to be 8
19
19
  end
20
20
 
21
21
  # Get Appium::Capybara::Node elements
22
22
  expect(capy_driver.find_custom(:name, 'X Button')[0].name).to eq('X Button')
23
23
 
24
24
  e = Capybara.current_session.find(:xpath, '//XCUIElementTypeNavigationBar')
25
- expect(e.find(:class, 'XCUIElementTypeButton').text).to eq('UICatalog')
25
+ expect(e.find(:class, 'XCUIElementTypeButton').text).to eq('UIKitCatalog')
26
26
 
27
27
  Capybara.current_session.driver.appium_driver.back
28
28
 
@@ -6,9 +6,9 @@ require_relative 'sheets_section'
6
6
  require_relative 'home_page'
7
7
 
8
8
  RSpec.configure do |config|
9
- config.after(:each) { Capybara.current_session.driver.quit }
9
+ config.after(:each) { Capybara.current_session.driver&.quit }
10
10
 
11
11
  config.after do |result|
12
- Capybara.current_session.driver.save_screenshot 'error.png' if result.exception
12
+ Capybara.current_session.driver&.save_screenshot 'error.png' if result.exception
13
13
  end
14
14
  end
@@ -91,9 +91,9 @@ module Appium::Capybara
91
91
  action_builder
92
92
  .move_to_location(start_x, start_y)
93
93
  .pointer_down(:left)
94
- .pause(input, duration / 1000)
94
+ .pause(device: input, duration: duration / 1000)
95
95
  .move_to_location(end_x, end_y)
96
- .pause(input, 1)
96
+ .pause(device: input, duration: 1)
97
97
  .release
98
98
  .perform
99
99
  end
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Capybara
3
- VERSION = '3.0.0'.freeze unless defined? ::Appium::Capybara::VERSION
4
- DATE = '2024-04-27'.freeze unless defined? ::Appium::Capybara::DATE
3
+ VERSION = '3.1.0'.freeze unless defined? ::Appium::Capybara::VERSION
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,9 @@
1
+ #### v3.1.0 2024-07-20
2
+
3
+ - [20bb106](https://github.com/appium/appium_capybara/commit/20bb10687dbfe4ad634699948af0628793009cec) Release 3.1.0
4
+ - [62baa84](https://github.com/appium/appium_capybara/commit/62baa848a17a7c92b12a5ac2ba885703dd5b81a7) feat: bump the minimal appium_lib version and modify the upper (#74)
5
+
6
+
1
7
  #### v3.0.0 2024-04-27
2
8
 
3
9
  - [4e25275](https://github.com/appium/appium_capybara/commit/4e25275f35bd934b52daf58e60237fe43577aa3f) Release 3.0.0
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
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-04-27 00:00:00.000000000 Z
11
+ date: 2024-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 12.0.0
19
+ version: 13.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 12.0.0
26
+ version: 13.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capybara
29
29
  requirement: !ruby/object:Gem::Requirement