effective_test_bot 1.1.3 → 1.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e80518462eed3b3c002e85af82df1f106a2165f6d7b522c0dc56cae14919458
|
4
|
+
data.tar.gz: b157d4a5e17710a1fc576fd6f7f5776ba57d632403dc4a12ffbd602445d187fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3724cba35d1a74dd9c5bd70711166fbb984924f568b0326f7234d4fc25e86efd2bc046003bbac3bcc8e0bae51bb0cc12bc4d6de43248b9bd3f2b429fc2c62553
|
7
|
+
data.tar.gz: 98e395667fb7591dedb0bfdfb6c54174d744703f8e797d16bf731c449bccc882693b0baf5d9b6e73e49ec4c030a835622bef842a65adc62dc7034092728b0274
|
@@ -39,14 +39,5 @@ module EffectiveTestBot
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
# Provide the seeds DSL in Ac
|
43
|
-
initializer 'effective_test_bot.test_case' do |app|
|
44
|
-
if Rails.env.test?
|
45
|
-
ActiveSupport.on_load :active_record do
|
46
|
-
ActiveSupport::TestCase.send :include, TestSeedable::Seed
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
42
|
end
|
52
43
|
end
|
@@ -53,7 +53,7 @@ module EffectiveTestBotFormFiller
|
|
53
53
|
|
54
54
|
seen = {}
|
55
55
|
|
56
|
-
5.times do
|
56
|
+
5.times do
|
57
57
|
# Support for the cocoon gem
|
58
58
|
fields = all('a.add_fields[data-association-insertion-template],a.has_many_add', wait: false).reject { |field| seen[field_key(field)] }
|
59
59
|
|
@@ -87,7 +87,7 @@ module EffectiveTestBotFormFiller
|
|
87
87
|
value = faker_value_for_field(field, fills)
|
88
88
|
|
89
89
|
if debug
|
90
|
-
puts " -> FILLING: #{value}"
|
90
|
+
puts " -> FILLING: #{value}"
|
91
91
|
end
|
92
92
|
|
93
93
|
field_name = [field.tag_name, field['type']].compact.join('_')
|
@@ -141,7 +141,7 @@ module EffectiveTestBotFormFiller
|
|
141
141
|
|
142
142
|
def fill_input_checkbox(field, value)
|
143
143
|
return if value.nil?
|
144
|
-
|
144
|
+
|
145
145
|
begin
|
146
146
|
field.set(value)
|
147
147
|
rescue => e
|
@@ -294,7 +294,7 @@ module EffectiveTestBotFormFiller
|
|
294
294
|
field_id.start_with?('datatable_') ||
|
295
295
|
field_id.start_with?('filters_scope_') ||
|
296
296
|
field_id.start_with?('filters_') && field['name'].blank? ||
|
297
|
-
field.disabled? ||
|
297
|
+
(field.disabled? rescue true) || # Selenium::WebDriver::Error::StaleElementReferenceError: stale element reference: element is not attached to the page document
|
298
298
|
(!field.visible? && !ckeditor_text_area?(field) && !custom_control_input?(field)) ||
|
299
299
|
['true', true, 1].include?(field['data-test-bot-skip']) ||
|
300
300
|
(@test_bot_excluded_fields_xpath.present? && field.path.include?(@test_bot_excluded_fields_xpath))
|
@@ -305,7 +305,7 @@ module EffectiveTestBotFormFiller
|
|
305
305
|
|
306
306
|
[
|
307
307
|
field['name'].presence,
|
308
|
-
("##{field['id']}" if field['id'].present?),
|
308
|
+
("##{field['id']}" if field['id'].present?),
|
309
309
|
field_name,
|
310
310
|
(".#{field['class'].split(' ').join('.')}" if field['class'].present?)
|
311
311
|
].compact.join(' ')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_test_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|