flights_gui_henry_tests 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzQ5N2NlMTlkZTUxMWJhN2RlMTMyZWMyYTE5NzU4ZTYyOTRlYTdhYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjYxNzBkZDI1MDg3OWMyMWUyZjg4Y2RiN2E1ZTIwYTA1NTdlNGZhMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2M1ZTE0ODllZTc0NTkxM2RlN2IyZGRkNjRjNGM0YjIzOGQ4NmFhYzYxZjA3
|
10
|
+
MzczNWFjNmVmNTg2NjU5MWJiOWNlYjdjMDM5MWYyYWIwOTMyYWRmNDA3Y2Mw
|
11
|
+
ODEyMjc2NGQzYjNlY2Y3YWQ0ZTA3YTI5ODQ5MDhiMTI0YWIyMmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmUzMjI4ZGQwMTc4YzA1MGIxODE0NDg4MTJlOWIxNmJlZGEzOGU2MjBjZTg0
|
14
|
+
OGYxYjJkMTNhYTkxZTlmNzcyNDJhMmQ4MzQwZjAzNWUzMTRkNWY3ZjVhOThm
|
15
|
+
YWQ5NDk1OGE2NWRjNTk1ZmYyMGExYTM3MjZkMjBlZDQwMWMyZmM=
|
@@ -131,6 +131,7 @@ Then /^Completo el formulario de pasajeros$/ do
|
|
131
131
|
end
|
132
132
|
|
133
133
|
And /^Completo el formulario de tarjeta$/ do
|
134
|
+
data = @search.get_results_search_service
|
134
135
|
provider = @item_json ? @item_json["provider"] : data["result"]["data"]["items"][0]["provider"]
|
135
136
|
container = BROWSER.fieldset(:id,'payment')
|
136
137
|
container.div(:class,"installment-info").text.downcase.no_accents.match(/debito/) ? container.radio(:id,"installment-1").click : container.radio(:id,"installment-0").click
|
@@ -224,9 +225,11 @@ Then /^Verifico que dirija a la pagina de gracias$/ do
|
|
224
225
|
BROWSER.div(:id,'popup-price-difference-template').div(:class,'popup-button button-yes').click
|
225
226
|
step "Verifico que dirija a la pagina de gracias"
|
226
227
|
end
|
227
|
-
|
228
|
-
|
229
|
-
|
228
|
+
unless BROWSER.div(:id =>'popup-new-flight').present?
|
229
|
+
doc = Hpricot.parse(BROWSER.html)
|
230
|
+
errores = (doc/"span.error-message").select{|error| error.attributes['style'].match(/block/)}
|
231
|
+
errores.should is_empty
|
232
|
+
end
|
230
233
|
end
|
231
234
|
|
232
235
|
Then /^Verifico que genere id cro$/ do
|
@@ -139,6 +139,10 @@ end
|
|
139
139
|
def set_language(site)
|
140
140
|
begin
|
141
141
|
if site=="US"
|
142
|
+
if BROWSER.li(:class,'nibbler-common-header-language nibbler-user').image(:src,/es.png/).present?
|
143
|
+
BROWSER.li(:class,'nibbler-common-header-language nibbler-user').links[0].click
|
144
|
+
BROWSER.execute_script("javascript:void($(\".popup-languages img\").click());")
|
145
|
+
end
|
142
146
|
if BROWSER.li(:class,'nibbler-common-header-language').image(:src,/es.png/).present?
|
143
147
|
BROWSER.li(:class,'nibbler-common-header-language').links[0].click
|
144
148
|
BROWSER.execute_script("javascript:void($(\".nibbler-common-header-language-popup a\").click());")
|
@@ -146,9 +150,13 @@ def set_language(site)
|
|
146
150
|
end
|
147
151
|
rescue Selenium::WebDriver::Error::UnknownError
|
148
152
|
if site=="US"
|
153
|
+
if BROWSER.li(:class,'nibbler-common-header-language nibbler-user').image(:src,/es.png/).present?
|
154
|
+
BROWSER.li(:class,'nibbler-common-header-language nibbler-user').links[0].click
|
155
|
+
BROWSER.execute_script("javascript:void($(\".popup-languages a\").click());")
|
156
|
+
end
|
149
157
|
if BROWSER.li(:class,'nibbler-common-header-language').image(:src,/es.png/).present?
|
150
158
|
BROWSER.li(:class,'nibbler-common-header-language').links[0].click
|
151
|
-
BROWSER.execute_script("javascript:void($(\".nibbler-common-header-language-popup
|
159
|
+
BROWSER.execute_script("javascript:void($(\".nibbler-common-header-language-popup img\").click());")
|
152
160
|
end
|
153
161
|
end
|
154
162
|
rescue Timeout::Error
|
@@ -43,14 +43,4 @@ Característica: checkout.seguros
|
|
43
43
|
Ejemplos:
|
44
44
|
|pais|prov|tipo|seguro|from|to|cabotage|
|
45
45
|
|AR|GDS|roundtrip|chequear|BUE|MIA|nil|
|
46
|
-
|AR|GDS|roundtrip|no_chequear|BUE|BCN|nil|
|
47
|
-
@br
|
48
|
-
Ejemplos:
|
49
|
-
|pais|prov|tipo|seguro|from|to|cabotage|
|
50
|
-
|BR|GDS|roundtrip|chequear|BUE|MIA|nil|
|
51
|
-
|BR|GDS|roundtrip|no_chequear|BUE|BCN|nil|
|
52
|
-
@us
|
53
|
-
Ejemplos:
|
54
|
-
|pais|prov|tipo|seguro|from|to|cabotage|
|
55
|
-
|US|GDS|roundtrip|chequear|BUE|MIA|nil|
|
56
|
-
|US|GDS|roundtrip|no_chequear|BUE|BCN|nil|
|
46
|
+
|AR|GDS|roundtrip|no_chequear|BUE|BCN|nil|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
|
17
17
|
|
18
|
-
gem.version = '2.5.
|
18
|
+
gem.version = '2.5.1' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
19
19
|
|
20
20
|
gem.add_dependency('henry-container', '>= 0.1.39')
|
21
21
|
gem.add_dependency('watir-webdriver')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flights_gui_henry_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez,lsimean
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|