flights_gui_henry_tests 3.0.6 → 3.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/step_definitions/checkout/agencia_steps.rb +1 -1
- data/features/step_definitions/results/search_steps.rb +2 -2
- data/features/step_definitions/search/flight_gui_steps.rb +13 -2
- data/features/support/env.rb +1 -0
- data/features/tests/checkout/agency.feature +1 -7
- data/features/tests/checkout/low_cost.feature +15 -1
- data/features/tests/checkout/providers.feature +18 -18
- data/flights_gui_henry_tests.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d378bb5ef0ebaac10b332f8d3c2dea5ea0101359
|
4
|
+
data.tar.gz: 3ca86d42b7d697b342d88acc00307dd2d07a6ba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d4248547fc8bffffc430892f0a2cb3be87ab56a639f05a5247575a36639309046e3d726b8064c336a43b9c792367ca25e66ff0766e64bbd36bd8043d5054f51
|
7
|
+
data.tar.gz: 596e282e418b5e2a54a433250d3ce6b921cb7db184e1c410d60b25bab453dc661f0820ed717e9a9e63266a64e8072523e40bcb6fed800713b865b0781623bfd1
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
And /^Verifico los datos de agencia afiliada$/ do
|
3
3
|
BROWSER.div(:id,'agency').should visible
|
4
|
-
BROWSER.div(:id,'agency').text.should match("
|
4
|
+
BROWSER.div(:id,'agency').text.should match("AG14073")
|
5
5
|
BROWSER.span(:class,'choose-another').link(:class,'link').should_not visible
|
6
6
|
end
|
@@ -91,8 +91,8 @@ When /^Ingreso a la pagina de checkout de agencia en "(.*)" para una busqueda "(
|
|
91
91
|
set_site(site)
|
92
92
|
@search = Class.const_get("MockSearch#{type.capitalize}").new(site,$ENV,cabotage)
|
93
93
|
begin
|
94
|
-
puts @search.generate_url_checkout + "?agency=
|
95
|
-
BROWSER.goto(@search.generate_url_checkout + "?agency=
|
94
|
+
puts @search.generate_url_checkout + "?agency=AG14073"
|
95
|
+
BROWSER.goto(@search.generate_url_checkout + "?agency=AG14073")
|
96
96
|
rescue
|
97
97
|
pending("No se encontraron resultados para la busqueda #{@search.generate_url_results_search}")
|
98
98
|
end
|
@@ -157,6 +157,7 @@ Then /^Completo el formulario de pasajeros$/ do
|
|
157
157
|
end
|
158
158
|
|
159
159
|
And /^Completo el formulario de tarjeta$/ do
|
160
|
+
puts BROWSER.url
|
160
161
|
data = @search.get_results_search_service
|
161
162
|
provider = @item_json ? @item_json["provider"] : data["result"]["data"]["items"][0]["provider"]
|
162
163
|
container = BROWSER.fieldset(:id,'payment')
|
@@ -171,15 +172,25 @@ And /^Completo el formulario de tarjeta$/ do
|
|
171
172
|
container.text_field(:id,'security-code').set("1234")
|
172
173
|
container.text_field(:id,"billing-address-city").set("Y Ciudad") if container.text_field(:id,"billing-address-city").present?
|
173
174
|
container.text_field(:id,"billing-address-street").set("Y Calle") if container.text_field(:id,"billing-address-street").present?
|
175
|
+
container.select_list(:id,'card-expiration-month').select('10')
|
176
|
+
container.select_list(:id,'card-expiration-year').select(Date.today.year+1)
|
177
|
+
elsif provider == "AIJ"
|
178
|
+
container.select_list(:id,'card-brand').select("MasterCard")
|
179
|
+
container.text_field(:id,'card-number').set("5210000010001001")
|
180
|
+
container.text_field(:id,'security-code').set("777")
|
181
|
+
container.text_field(:id,"billing-address-city").set("ciudad") if container.text_field(:id,"billing-address-city").present?
|
182
|
+
container.text_field(:id,"billing-address-street").set("calle") if container.text_field(:id,"billing-address-street").present?
|
183
|
+
container.select_list(:id,'card-expiration-month').select('1')
|
184
|
+
container.select_list(:id,'card-expiration-year').select('2015')
|
174
185
|
else
|
175
186
|
container.select_list(:id,'card-brand').select("Visa")
|
176
187
|
container.text_field(:id,'card-number').set("4242424242424242")
|
177
188
|
container.text_field(:id,'security-code').set("123")
|
178
189
|
container.text_field(:id,"billing-address-city").set("Ciudad") if container.text_field(:id,"billing-address-city").present?
|
179
190
|
container.text_field(:id,"billing-address-street").set("Calle") if container.text_field(:id,"billing-address-street").present?
|
191
|
+
container.select_list(:id,'card-expiration-month').select('10')
|
192
|
+
container.select_list(:id,'card-expiration-year').select(Date.today.year+1)
|
180
193
|
end
|
181
|
-
container.select_list(:id,'card-expiration-month').select('10')
|
182
|
-
container.select_list(:id,'card-expiration-year').select(Date.today.year+1)
|
183
194
|
container.text_field(:id,"other-bank-name").set("/Banco Emisor/") if container.text_field(:id,"other-bank-name").present?
|
184
195
|
container.text_field(:id,"owner-name").set("Diego Qa Romero") if container.text_field(:id,"owner-name").present?
|
185
196
|
container.select_list(:id,'owner-gender').select_value("MALE") if container.select_list(:id,'owner-gender').present?
|
data/features/support/env.rb
CHANGED
@@ -45,6 +45,7 @@ def add_cookie(type)
|
|
45
45
|
when 'DEBASE' then "flights-dbs-new=flights-dbs-new-b"
|
46
46
|
when 'CHAS_CHECKOUT' then "chkf-app=beta|chas-flight=beta"
|
47
47
|
when 'PRISM' then "prism=beta"
|
48
|
+
when 'DEBASE_PRISM' then "flights-dbs-new=flights-dbs-new-b|prism=prism-beta"
|
48
49
|
else "landing-f-gui=beta|results-f-gui=beta|chkf-app=beta"
|
49
50
|
end
|
50
51
|
end
|
@@ -45,4 +45,18 @@ Característica: checkout.low_cost
|
|
45
45
|
|BR|roundtrip|true|TAM|SAO|RIO|
|
46
46
|
|BR|oneway|true|TAM|SAO|RIO|
|
47
47
|
|BR|roundtrip|true|AZD|SAO|RIO|
|
48
|
-
|BR|oneway|true|AZD|SAO|RIO|
|
48
|
+
|BR|oneway|true|AZD|SAO|RIO|
|
49
|
+
|
50
|
+
# @br
|
51
|
+
# Ejemplos:
|
52
|
+
# |pais|tipo|cabotage|prov|from|to|
|
53
|
+
# |BR|roundtrip|true|GOL|SAO|RIO|
|
54
|
+
# |BR|oneway|true|GOL|SAO|RIO|
|
55
|
+
# |BR|roundtrip|true|GOL|REC|POA|
|
56
|
+
# |BR|oneway|true|GOL|SAO|RIO|
|
57
|
+
# |BR|roundtrip|true|GOL|SAO|RIO|
|
58
|
+
# |BR|oneway|true|GOL|SAO|RIO|
|
59
|
+
# |BR|roundtrip|true|GOL|SAO|RIO|
|
60
|
+
# |BR|oneway|true|GOL|SAO|RIO|
|
61
|
+
# |BR|roundtrip|true|GOL|SAO|RIO|
|
62
|
+
# |BR|oneway|true|GOL|SAO|RIO|
|
@@ -56,21 +56,21 @@ Característica: checkout.providers
|
|
56
56
|
|pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
57
57
|
|MX|roundtrip|true|AIJ|MEX|MTY|2014-02-28|2014-03-17|
|
58
58
|
|MX|oneway|true|AIJ|MEX|GDL|2014-03-28|2014-04-17|
|
59
|
-
|
60
|
-
Ejemplos:
|
61
|
-
|pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
62
|
-
|AR|roundtrip|nil|WDS|MEX|MTY|2014-02-28|2014-03-17|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
Ejemplos:
|
67
|
-
|pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
68
|
-
|PE|roundtrip|nil|WDS|MEX|MTY|2014-02-28|2014-03-17|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
Ejemplos:
|
73
|
-
|pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
74
|
-
|CO|roundtrip|true|WDS|MEX|MTY|2014-02-28|2014-03-17|
|
75
|
-
|
76
|
-
|
59
|
+
# @ar
|
60
|
+
# Ejemplos:
|
61
|
+
# |pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
62
|
+
# |AR|roundtrip|nil|WDS|MEX|MTY|2014-02-28|2014-03-17|
|
63
|
+
# |AR|oneway|true|WDS|MEX|GDL|2014-03-28|2014-04-17|
|
64
|
+
# |AR|multipledestinations|nil|WDS|MEX|CUN|2014-03-01|2014-03-15|
|
65
|
+
# @pe
|
66
|
+
# Ejemplos:
|
67
|
+
# |pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
68
|
+
# |PE|roundtrip|nil|WDS|MEX|MTY|2014-02-28|2014-03-17|
|
69
|
+
# |PE|oneway|nil|WDS|MEX|GDL|2014-03-28|2014-04-17|
|
70
|
+
# |PE|multipledestinations|nil|WDS|MEX|CUN|2014-03-01|2014-03-15|
|
71
|
+
# @co
|
72
|
+
# Ejemplos:
|
73
|
+
# |pais|tipo|cabotage|prov|from|to|date_from|date_to|
|
74
|
+
# |CO|roundtrip|true|WDS|MEX|MTY|2014-02-28|2014-03-17|
|
75
|
+
# |CO|oneway|nil|WDS|MEX|GDL|2014-03-28|2014-04-17|
|
76
|
+
# |CO|multipledestinations|true|WDS|MEX|CUN|2014-03-01|2014-03-15|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
gem.name = "flights_gui_henry_tests" #Debe ser unico en el Gem Server, tratemos de utilizar nombre que identifiquen de forma inequivoca
|
15
15
|
|
16
16
|
gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]5
|
17
|
-
gem.version = '3.0.
|
17
|
+
gem.version = '3.0.7' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
18
18
|
|
19
19
|
gem.add_dependency('henry-container', '>= 0.1.82')
|
20
20
|
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: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: henry-container
|