spree_dev_tools 0.1.8 → 0.1.12

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: 61141e4fb1a45a3ef002da9a2b0e8f9ee1c2a774e1b82b66e79000cea91c0127
4
- data.tar.gz: d826825eb21f8a9ebef4ccca0ec1fe73a43c6bbebc058c405862d2b3318e6031
3
+ metadata.gz: 920a43b88349bd7f48f9ecf18d4028c8b46d06d8aee00919ef369784d9fbcf0b
4
+ data.tar.gz: '0485a7cb1be4a17ed95a720ffd970691f24d7920bd8e11c0d2109adc84d8687d'
5
5
  SHA512:
6
- metadata.gz: f533dd629e350b407e242fa446c4809806076d49e7c59f63818475205c8b6ee790a4b6228633a29f3511aaf1e62f33e4552425704397de85856476badc0360d5
7
- data.tar.gz: c7914cc9042dc1da6d29a168fd14471c8243720e672b81b5f1e34cafed037b3e2197aec2d526372c926fa7278a3fef063b38dbdc0762499fa4dc5a26ef03a015
6
+ metadata.gz: 777b24bb617f5580138643a3a3b30931b208d9237be2fc77d30063c0fa3fc4a2fab3503345dcbd9a75c96c3d5c1eeaa42ee1c6923bc88b6e6aeb0f314596c1a9
7
+ data.tar.gz: 0aea9ce68cc2c2f0a9ad9f37b394b22dc9cd8344100fa416a99f370f75a0681aa4d1e26591dbba8d557c0a35bd34fc1009d5914be64bb4848158e278603fe33e
data/.bundle/config CHANGED
@@ -1,2 +1,2 @@
1
1
  ---
2
- BUNDLE_JOBS: "8"
2
+ BUNDLE_JOBS: "12"
@@ -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
@@ -11,12 +11,6 @@ require 'spree/testing_support/auth_helpers'
11
11
  require 'spree/testing_support/checkout_helpers'
12
12
  require 'spree/testing_support/caching'
13
13
 
14
- # API helpers
15
- if defined?(Spree::Api)
16
- require 'spree/api/testing_support/helpers'
17
- require 'spree/api/testing_support/setup'
18
- end
19
-
20
14
  # API v2 helpers
21
15
  if defined?(Spree::Api) && Spree.version.to_f >= 3.7
22
16
  require 'jsonapi/rspec'
@@ -48,19 +42,23 @@ RSpec.configure do |config|
48
42
  config.include Spree::TestingSupport::AuthHelpers, type: :feature
49
43
  config.include Spree::TestingSupport::CheckoutHelpers, type: :feature
50
44
 
51
- if defined?(Spree::Api)
52
- config.include Spree::Api::TestingSupport::Helpers # needed for API v1
53
- config.extend Spree::Api::TestingSupport::Setup, type: :request
54
- end
55
45
  if Spree.version.to_f >= 3.7
56
46
  config.include JSONAPI::RSpec, type: :request # required for API v2 request specs
57
47
  end
58
48
 
59
49
  config.before :each do
60
50
  Rails.cache.clear
61
- reset_spree_preferences do |config|
62
- # config.my_custom_preference = 10
51
+
52
+ country = create(:country, name: 'United States of America', iso_name: 'UNITED STATES', iso: 'US', states_required: true)
53
+
54
+ reset_spree_preferences do |spree_config|
55
+ spree_config.default_country_id = country.id
56
+ end
57
+
58
+ if Spree.version.to_f >= 4.2
59
+ create(:store, default: true, default_country: country)
60
+ else
61
+ create(:store, default: true)
63
62
  end
64
- create(:store)
65
63
  end
66
64
  end
@@ -1,5 +1,5 @@
1
1
  module SpreeDevTools
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.12'
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'
@@ -38,6 +37,7 @@ Gem::Specification.new do |s|
38
37
  s.add_dependency 'pry'
39
38
  s.add_dependency 'puma'
40
39
  s.add_dependency 'rails-controller-testing'
40
+ s.add_dependency 'redis'
41
41
  s.add_dependency 'rspec-activemodel-mocks'
42
42
  s.add_dependency 'rspec-rails', '~> 4.0'
43
43
  s.add_dependency 'rspec-retry'
@@ -50,4 +50,5 @@ Gem::Specification.new do |s|
50
50
  s.add_dependency 'sqlite3'
51
51
  s.add_dependency 'timecop'
52
52
  s.add_dependency 'webdrivers', '~> 4.3'
53
+ s.add_dependency 'rspec_junit_formatter', '~> 0.4'
53
54
  end
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.8
4
+ version: 0.1.12
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-03-11 00:00:00.000000000 Z
11
+ date: 2021-12-05 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
@@ -248,6 +234,20 @@ dependencies:
248
234
  - - ">="
249
235
  - !ruby/object:Gem::Version
250
236
  version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: redis
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: rspec-activemodel-mocks
253
253
  requirement: !ruby/object:Gem::Requirement
@@ -416,6 +416,20 @@ dependencies:
416
416
  - - "~>"
417
417
  - !ruby/object:Gem::Version
418
418
  version: '4.3'
419
+ - !ruby/object:Gem::Dependency
420
+ name: rspec_junit_formatter
421
+ requirement: !ruby/object:Gem::Requirement
422
+ requirements:
423
+ - - "~>"
424
+ - !ruby/object:Gem::Version
425
+ version: '0.4'
426
+ type: :runtime
427
+ prerelease: false
428
+ version_requirements: !ruby/object:Gem::Requirement
429
+ requirements:
430
+ - - "~>"
431
+ - !ruby/object:Gem::Version
432
+ version: '0.4'
419
433
  description: Spree Developer Tools
420
434
  email: we@sparksolutions.co
421
435
  executables: []
@@ -461,7 +475,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
461
475
  version: '0'
462
476
  requirements:
463
477
  - none
464
- rubygems_version: 3.0.3
478
+ rubygems_version: 3.2.22
465
479
  signing_key:
466
480
  specification_version: 4
467
481
  summary: Spree Dev Tools