flights_gui_tests 2.4.79 → 2.4.80

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: d847e55502ad2661151bd90a171495f3f4e2f5bb
4
- data.tar.gz: f7a79ac407ca6229b305f5217329cd8305a19630
3
+ metadata.gz: 2fd6940da6bcc53b1df16171a368a788b514483a
4
+ data.tar.gz: 1a059a00bed73d8a348d95ef22c8897ed9e1eec3
5
5
  SHA512:
6
- metadata.gz: 914c52ada9f785328683f5ade033bbecba46cf61fbfefbb499dae635a8525b8608309660a5518c0e1a09f42f094047bf1f17f2472b8baa08ba26723d142bade8
7
- data.tar.gz: 9cbf8c0516e42b5b4f7d49df320fe289b2578e31ceeace4db11821dd0f3a7d1ddb88260248f3b4eee42c55a48609aba60a165e9e721ba9af976e9ccd4eecbeaf
6
+ metadata.gz: f67ef2bbebac743b1f6ae9f9b2374af7d89c4afe9b95205f1f4d4fee98ad606fd13f8f7870e8283599891adb9bea4504076de8dd7fae75dc7777d4b19fee3680
7
+ data.tar.gz: cf69f95ab528215980ef9f1148909d845ecce0c2f90e8583a366478117640225e60cb451daa7ab5880297dbcb7e68d83b754dd6984f8d655f5972a9939ca76b7
@@ -119,6 +119,47 @@ Y(/^(?:verifico|valido) si no trae errores$/) do
119
119
  errores = (doc/"span.error-message").select{|error| error.attributes['style'].match(/block/)}
120
120
  errores.should is_empty?
121
121
  end
122
+ end
123
+
124
+ Y(/^(?:verifico|valido) si la compatibilidad no trae errores$/) do
125
+ if @page.notificacion_warning_ux_element.present?
126
+ pagina = Hpricot.parse(@page.browser.html)
127
+ if (pagina/"div#errorInfo").length>0
128
+ raise((pagina/"div#errorInfo").inner_html)
129
+ end
130
+ pending(@page.notificacion_warning_ux_element.text) unless @page.popup_asistencia_al_viajero_element.present? or @page.popup_nuevo_vuelo_element.present? or @page.checkout_id_element.present? or @page.checkout_id_cash_element.present? or @page.notificacion_warning_ux_element.text.downcase.no_accents.match("viaja sin asistencia|viaja sem assistencia")
131
+ end
132
+ if @page.notificacion_error_campos_element.present?
133
+ @page.notificacion_error_campos_element.should_not visible(@page.notificacion_error_campos_element.text)
134
+ end
135
+ if @page.mensaje_eva_alerta_element.present?
136
+ pending(@page.mensaje_eva_alerta_element.text) if @page.url.match("no-more-flights")
137
+ end
138
+ if @page.mensaje_error_ux_element.present?
139
+ pending(@page.mensaje_error_ux_element.text) unless @page.popup_nuevo_vuelo_element.present? or @page.checkout_id_element.present? or @page.checkout_id_cash_element.present?
140
+ end
141
+ if @page.notificacion_error_cac_element.present?
142
+ pending(@page.notificacion_error_cac_element.text)
143
+ end
144
+ if @page.notificacion_error_element.present?
145
+ pending(@page.notificacion_error_element.text)
146
+ end
147
+ if @page.notificacion_error_ux_element.present?
148
+ pending(@page.notificacion_error_ux_element.text)
149
+ end
150
+ if @page.notificacion_warning_element.present?
151
+ @page.notificacion_warning_element.strip.no_accents.downcase.should_not match("lo sentimos, el vuelo que eligio no se encuentra disponible")
152
+ end
153
+ if @page.popup_nuevo_precio_element.present?
154
+ puts "Se mostro el popup de cambio de precio"
155
+ begin
156
+ @page.boton_si_cambio_precio_element.click
157
+ rescue Net::ReadTimeout
158
+ puts "Rompio Net::ReadTimeout"
159
+ end
160
+ step "espero que termine el pedido de compra"
161
+ @cambio_precio=true
162
+ end
122
163
  end
123
164
 
124
165
  Cuando(/^ingreso al checkout con cookie "(.*?)" al "(.*?)"/) do |name,value|
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.4.79"
2
+ VERSION = "2.4.80"
3
3
  end
@@ -10,7 +10,7 @@ Característica: checkout.compatibility
10
10
  Cuando espero que termine de cargar la pagina de checkout
11
11
  Entonces verifico que ingrese al checkout
12
12
  Y verifico que la pagina no rompa
13
- Y verifico si no trae errores
13
+ Y verifico si la compatibilidad no trae errores
14
14
 
15
15
  @ar
16
16
  @roundtrip
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.79
4
+ version: 2.4.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez