spree_dev_tools 0.1.10 → 0.1.11

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: bf2e6dd8609fbf03e15ce58a0acb61081486773028657b10269b8c021f82730a
4
- data.tar.gz: 95acaa105573cc1f0086f7965b3c0d533dc7bbee3fdc8072c83a51e7b2d0493d
3
+ metadata.gz: '096987b2e68c5bcc9f1d8066b27bc6ca519b68d1023e39cd3f74e0032bbdff74'
4
+ data.tar.gz: 19d32e277d6501ec073e082cd58f7799d1d468b547fea462bb72934a728a71af
5
5
  SHA512:
6
- metadata.gz: 8bfb35322152cd6e145f2abbac2c2ab872e230d2b6b8133660703698a042a4ac85cd8fab1f831341943b3e5cdea4836d5c468dc2ffe7e6f432ed079b56467ae5
7
- data.tar.gz: dd1469f24c46415952756514c42ef2cd562760e9df92adce1cad63fe7c55f6fd638568bcd2b3848143d1cd5b0b27ef59e2616cfb159fa8df67256185495e32d6
6
+ metadata.gz: e8c151366a4aecc1de7991b53132b913c7a9c59364eafab29a78bf609897727cf41be2d95f619d28839aac716b755d3219d6df6c1c9c8edc1e813fd09abe3d33
7
+ data.tar.gz: '019a0c20b693799b37877930f6be9b45b5efbcc51da257db1bd1ee0f865cb8dcd9f0a70c16136af97f0cbb0fccdd3b9ba900936cdce21e2f26e792630df45345'
@@ -5,21 +5,25 @@ require 'capybara/rails'
5
5
  require 'selenium-webdriver'
6
6
  require 'capybara-select-2'
7
7
 
8
- RSpec.configure do |config|
9
- Capybara.register_driver :chrome do |app|
10
- Selenium::WebDriver.logger.level = :error
8
+ Capybara.configure do |config|
9
+ config.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']
10
+ config.server = :puma
11
+ config.default_driver = :rack_test
12
+ config.javascript_driver = :selenium_chrome_headless
13
+ config.default_max_wait_time = ENV.fetch('CAPYBARA_MAX_WAIT_TIME', 45).to_i
14
+ config.always_include_port = true
15
+ config.match = :smart
16
+ config.ignore_hidden_elements = true
17
+ end
11
18
 
12
- Capybara::Selenium::Driver.new app,
13
- browser: :chrome,
14
- options: Selenium::WebDriver::Chrome::Options.new(
15
- args: %w[no-sandbox disable-dev-shm-usage disable-popup-blocking headless disable-gpu window-size=1920,1080 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=VizDisplayCompositor],
16
- log_level: :error
17
- )
18
- end
19
- Capybara.javascript_driver = :chrome
19
+ if ENV['WEBDRIVER'] == 'accessible'
20
+ require 'capybara/accessible'
21
+ Capybara.javascript_driver = :accessible
22
+ end
20
23
 
21
- Capybara::Screenshot.register_driver(:chrome) do |driver, path|
22
- driver.browser.save_screenshot(path)
24
+ RSpec.configure do |config|
25
+ config.before(:each, js: true) do
26
+ Capybara.page.driver.browser.manage.window.resize_to(1400, 900)
23
27
  end
24
28
 
25
29
  config.include CapybaraSelect2
@@ -1,5 +1,5 @@
1
1
  module SpreeDevTools
2
- VERSION = '0.1.10'
2
+ VERSION = '0.1.11'
3
3
 
4
4
  # Returns the version of the currently loaded SpreeDevTools as a
5
5
  # <tt>Gem::Version</tt>.
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_dependency 'capybara'
27
27
  s.add_dependency 'capybara-screenshot'
28
28
  s.add_dependency 'capybara-select-2'
29
- s.add_dependency 'coffee-rails'
30
29
  s.add_dependency 'database_cleaner'
31
30
  s.add_dependency 'factory_bot', '~> 4.7'
32
31
  s.add_dependency 'ffaker'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_dev_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spark Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-21 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: coffee-rails
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: database_cleaner
99
85
  requirement: !ruby/object:Gem::Requirement