testcentricity_web 2.0.2 → 2.0.3

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
  SHA1:
3
- metadata.gz: d0413d7f56a74512b41a9b733e2ca00ab95fd569
4
- data.tar.gz: 2f3f5678e508dfab93d4566ae82ed738bde3ee0b
3
+ metadata.gz: 7e378b380af2a551c2bb896a19b6c3cb5e8b5ec5
4
+ data.tar.gz: b4896c535220dfe02cc87edeb23dbee3e23ca924
5
5
  SHA512:
6
- metadata.gz: 232c40990ffe512a27dcb95643c2e7756add7aa02fed25163d5e04168dc3f42e2a69e38582d6313c0f426b93323a18f8d563bb2d3d0e5cb59e98892702eeefb4
7
- data.tar.gz: bffad447baba8ed5172b6502153de27bac1fb7b2a5b5abaa804e5d9a3031047146316db19c6abbf682efa47e2c18592787938fd28449e820aa4d417636395ad9
6
+ metadata.gz: 2980932adfbf9f5a04f3da0b448bb23d28ed0453da0387c6e13733e176696a5424bc52585f576e29e25b1b4843279f60d118dd14cab67d9d7ef14f1ea5393629
7
+ data.tar.gz: dff3a1b6a830cd9638d107bbd84dca6e0a26b4f13fcbf8ccae2d18b752cd53004c61e7b62bbaa78e881ab33f9269d4094bcc3bc35c6c245c35ed201c6b650b7c
@@ -439,7 +439,7 @@ module TestCentricity
439
439
  actual = ui_object.checked?
440
440
  when :selected
441
441
  actual = ui_object.selected?
442
- when :value, :caption
442
+ when :value, :caption, :translate
443
443
  actual = ui_object.get_value
444
444
  when :maxlength
445
445
  actual = ui_object.get_max_length
@@ -513,7 +513,12 @@ module TestCentricity
513
513
  end
514
514
  end
515
515
  else
516
- ExceptionQueue.enqueue_assert_equal(state, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) #{property} property")
516
+ if property == :translate
517
+ expected = I18n.t(state)
518
+ ExceptionQueue.enqueue_assert_equal(expected, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) value property")
519
+ else
520
+ ExceptionQueue.enqueue_assert_equal(state, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) #{property} property")
521
+ end
517
522
  end
518
523
  end
519
524
  end
@@ -510,7 +510,7 @@ module TestCentricity
510
510
  actual = ui_object.checked?
511
511
  when :selected
512
512
  actual = ui_object.selected?
513
- when :value, :caption
513
+ when :value, :caption, :translate
514
514
  actual = ui_object.get_value
515
515
  when :maxlength
516
516
  actual = ui_object.get_max_length
@@ -584,7 +584,12 @@ module TestCentricity
584
584
  end
585
585
  end
586
586
  else
587
- ExceptionQueue.enqueue_assert_equal(state, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) #{property} property")
587
+ if property == :translate
588
+ expected = I18n.t(state)
589
+ ExceptionQueue.enqueue_assert_equal(expected, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) value property")
590
+ else
591
+ ExceptionQueue.enqueue_assert_equal(state, actual, "Expected UI object '#{ui_object.get_name}' (#{ui_object.get_locator}) #{property} property")
592
+ end
588
593
  end
589
594
  end
590
595
  end
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
@@ -34,8 +34,9 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency 'test-unit'
35
35
  spec.add_dependency 'selenium-webdriver', ['>= 2.50.0', '< 3.0']
36
36
  spec.add_dependency 'poltergeist'
37
- spec.add_dependency 'faker', '1.6.6'
37
+ spec.add_dependency 'faker', '1.7.2'
38
38
  spec.add_dependency 'chronic', '0.10.2'
39
39
  spec.add_dependency 'spreadsheet', '1.1.1'
40
40
  spec.add_dependency 'os'
41
+ spec.add_dependency 'i18n'
41
42
  end
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: 2.0.2
4
+ version: 2.0.3
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: 2017-01-21 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - '='
114
114
  - !ruby/object:Gem::Version
115
- version: 1.6.6
115
+ version: 1.7.2
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - '='
121
121
  - !ruby/object:Gem::Version
122
- version: 1.6.6
122
+ version: 1.7.2
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: chronic
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -162,6 +162,20 @@ dependencies:
162
162
  - - ">="
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
+ - !ruby/object:Gem::Dependency
166
+ name: i18n
167
+ requirement: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ type: :runtime
173
+ prerelease: false
174
+ version_requirements: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
165
179
  description: |2-
166
180
 
167
181
  TestCentricity™ Web core generic framework for desktop and mobile web site testing implements a Page Object Model DSL