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 +4 -4
- data/lib/spree_dev_tools/rspec/support/capybara.rb +17 -13
- data/lib/spree_dev_tools/version.rb +1 -1
- data/spree_dev_tools.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '096987b2e68c5bcc9f1d8066b27bc6ca519b68d1023e39cd3f74e0032bbdff74'
|
4
|
+
data.tar.gz: 19d32e277d6501ec073e082cd58f7799d1d468b547fea462bb72934a728a71af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
9
|
-
|
10
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
22
|
-
|
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
|
data/spree_dev_tools.gemspec
CHANGED
@@ -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.
|
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-
|
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
|