testcentricity_web 4.5.7 → 4.5.8

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: 81e3ce8ee09530abd102258e25235af8032599eab54e067784ae3eb6349d2e18
4
- data.tar.gz: 66f82ab5ceede12f34095be1aa4eb96d59c7f4e1adaade724e54aa39f0e7a222
3
+ metadata.gz: 575fdd6634934d1a2e9b463aea2adfdd2398acf4ba6b808b6daf1755895b7079
4
+ data.tar.gz: d2a339b8d7f97a4d120a76a4b4d0f90f25597901827c3843de0b1b0c364a7e89
5
5
  SHA512:
6
- metadata.gz: 1b954744d822885d35b580c233153f3346c4b31ea9ef7667916d816882ff0e3499e3fd162c80ff587529ae6f2c261dd209993f7db7b64af692d7edb7b2843329
7
- data.tar.gz: 1b31ffb82f255889fb5403c5fc4aa9ffc9643715963eedb7abf6a49cfa76f4cb17cfbaa28d6a638665a9fac30e24eeb000911b83c44af30e0fdd1582b36ce1a7
6
+ metadata.gz: b9849495eec6cd99dac54e4b46183ed1f8782791a173abeab59569696af25b630b6c983419afe99079f70f86fcd2fe846a521a56a011a993d425723d39ddf26d
7
+ data.tar.gz: ae6d437e88f35fa9617de1987f7936634df8ae4998cb4799ae7b35b633f9cba08f7e44dbe7470b181734b38edb2c2569c69a526dfbb2537170fb1be886389668
data/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
4
 
5
+ ## [4.5.8] - 21-MAY-2024
6
+
7
+ ### Changed
8
+
9
+ * Setting `DOWNLOADS` Environment Variable to `true` will create a `/downloads` folder which will be used as the destination
10
+ for files that are downloaded by your automated tests. You know longer need to manually create the `/downloads` folder.
11
+ * Updated `appium_lib` gem to version 15.1.0.
12
+ * Updated `appium_lib_core` gem to version 9.1.1.
13
+ * Updated `selenium-webdriver` gem to version 4.21.1.
14
+
15
+
5
16
  ## [4.5.7] - 25-APR-2024
6
17
 
7
18
  ### Changed
data/README.md CHANGED
@@ -1625,9 +1625,9 @@ Below is an example of an `options` hash for specifying a connection to a locall
1625
1625
  #### Testing File Downloads With Desktop Browsers
1626
1626
 
1627
1627
  File download functionality can be tested with locally hosted instances of Chrome, Edge, or Firefox desktop browsers. Your
1628
- automation project must include a `/downloads` folder which is used as the destination for files that are downloaded by
1629
- your automated tests. The `/downloads` folder must be at the same level as the `/config` and `/features` folders, as depicted
1630
- below:
1628
+ automation project must set the `DOWNLOADS` Environment Variable to `true`, which will result in a `/downloads` folder being
1629
+ created, which will be used as the destination for files that are downloaded by your automated tests. The `/downloads` folder
1630
+ will be at the same level as the `/config` and `/features` folders, as depicted below:
1631
1631
 
1632
1632
  📁 my_automation_project/
1633
1633
  ├── 📁 config/
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '4.5.7'
2
+ VERSION = '4.5.8'
3
3
  end
@@ -157,6 +157,10 @@ module TestCentricity
157
157
  @initialized = false
158
158
  end
159
159
 
160
+ def self.downloads_path
161
+ @downloads_path
162
+ end
163
+
160
164
  def self.initialize_browser_size
161
165
  # tile browser windows if BROWSER_TILE environment variable is true and running in multiple parallel threads
162
166
  if ENV['BROWSER_TILE'] && (Environ.parallel || @drivers.length > 1)
@@ -216,8 +220,12 @@ module TestCentricity
216
220
 
217
221
  def self.initialize_downloads
218
222
  @drivers = {}
219
- # set downloads folder path
220
223
  @downloads_path = "#{Dir.pwd}/downloads"
224
+ # create downloads folder if it doesn't already exist
225
+ if ENV['DOWNLOADS'] && ENV['DOWNLOADS'].to_bool
226
+ Dir.mkdir(@downloads_path) unless Dir.exist?(@downloads_path)
227
+ end
228
+
221
229
  if ENV['PARALLEL']
222
230
  Environ.parallel = true
223
231
  Environ.process_num = ENV['TEST_ENV_NUMBER']
@@ -746,7 +754,7 @@ module TestCentricity
746
754
  options.add_argument("--lang=#{ENV['LOCALE']}") if ENV['LOCALE']
747
755
  if browser == :chrome_headless || browser == :edge_headless
748
756
  Environ.headless = true
749
- options.add_argument('--headless')
757
+ options.add_argument('--headless=new')
750
758
  options.add_argument('--disable-gpu')
751
759
  end
752
760
  options
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.7
4
+ version: 4.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 15.0.0
159
+ version: 15.1.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 15.0.0
166
+ version: 15.1.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: browserstack-local
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +268,14 @@ dependencies:
268
268
  requirements:
269
269
  - - '='
270
270
  - !ruby/object:Gem::Version
271
- version: 4.20.0
271
+ version: 4.21.1
272
272
  type: :runtime
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
276
  - - '='
277
277
  - !ruby/object:Gem::Version
278
- version: 4.20.0
278
+ version: 4.21.1
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: test-unit
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -311,8 +311,8 @@ description: |2-
311
311
  appropriate Selenium-Webdriver capabilities required to establish connections to locally hosted desktop browsers,
312
312
  locally hosted emulated mobile browsers (iOS, Android, etc.) running within a local instance of Chrome, mobile Safari
313
313
  browsers on iOS device simulators or physical iOS devices, mobile Chrome browsers on Android Studio virtual device
314
- emulators, or cloud hosted desktop or mobile web browsers (using BrowserStack, Sauce Labs, TestingBot, or
315
- LambdaTest services).
314
+ emulators, or cloud hosted desktop or mobile web browsers (using BrowserStack, Sauce Labs, TestingBot, or LambdaTest
315
+ services).
316
316
  email:
317
317
  - testcentricity@gmail.com
318
318
  executables: []