flights_gui_tests 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd814af59715abcbea138dcb7cdbdc525bee941e
|
|
4
|
+
data.tar.gz: ea9ca6ae71837b26b8eba35ea427411be4e6a723
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83ae897a08f5ffaf5c3b2f34b4433b913ac5949d20c6c8a1c127ba35985e81c9ee814d41e3486843d9e233ff70d400953312010fb4c2463f956a010be188fe57
|
|
7
|
+
data.tar.gz: 9084ba3af5653ea2bc362e709ec7335014040b2350696df8af5e59678b5abe0f1002e2b142d4764b31139d76755046419ec5e623f785739c103749226f1b58a7
|
|
@@ -32,6 +32,11 @@ Dado(/^con (?:fecha ida|fecha|salida|fecha salida) '(.*)' y (?:estadia|fecha vue
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
Cuando(/^(?:realizo|genero|ingreso) la busqueda$/) do
|
|
35
|
+
if AllPages.lang=="en"
|
|
36
|
+
@page.manage_data.set_header_json({"host"=>"www.us.despegar.com"})
|
|
37
|
+
@page.ir("www.despegar.com")
|
|
38
|
+
$browser.execute_script("javascript:void(document.cookie = 'x-locale=en-#{AllPages.site.upcase}; domain=despegar.com; Path=/')")
|
|
39
|
+
end
|
|
35
40
|
begin
|
|
36
41
|
@page.ir(@page.url_busqueda)
|
|
37
42
|
rescue Net::ReadTimeout
|
|
@@ -116,20 +116,10 @@ class AllPages
|
|
|
116
116
|
rescue
|
|
117
117
|
puts "No se pudo cargar el X-UOW"
|
|
118
118
|
end
|
|
119
|
-
if AllPages.lang=="en"
|
|
120
|
-
begin
|
|
121
|
-
@browser.execute_script("javascript:void(document.cookie = 'x-locale=en-#{@@site.upcase}; Path=/')")
|
|
122
|
-
rescue
|
|
123
|
-
puts "No se pudo cargar el X-locale"
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
119
|
if $ENV.upcase=="BETA"
|
|
127
|
-
|
|
120
|
+
begin
|
|
128
121
|
@browser.execute_script("javascript:void(document.cookie='X-Version-Override=#{add_cookie($HENRY_PARAMS['product'])};domain=#{dominio};path=/');")
|
|
129
122
|
self.manage_data.set_header_json({"X-Version-Override"=>add_cookie($HENRY_PARAMS['product'])})
|
|
130
|
-
self.manage_data.set_header_json({"host"=>"www.us.despegar.com"}) if AllPages.lang=="en"
|
|
131
|
-
end
|
|
132
|
-
begin
|
|
133
123
|
@browser.refresh
|
|
134
124
|
sleep(1)
|
|
135
125
|
@browser.alert.ok if @browser.alert.exists?
|
|
@@ -137,8 +127,9 @@ class AllPages
|
|
|
137
127
|
@browser.send_keys :escape
|
|
138
128
|
end
|
|
139
129
|
end
|
|
140
|
-
|
|
130
|
+
|
|
141
131
|
sleep(2)
|
|
132
|
+
|
|
142
133
|
end
|
|
143
134
|
|
|
144
135
|
def uow
|
data/features/support/version.rb
CHANGED