flights_gui_henry_tests 2.9.0 → 2.9.1

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: 0605a4cffb37dcb2ccf4829968eb514b42db30ab
4
- data.tar.gz: 4f7af27f2b3be5476741d72e5ffce9e71f7af31a
3
+ metadata.gz: 8f26ce7052e995dedbd612e0ee2744e0f61fc223
4
+ data.tar.gz: 40905b2e2938d7c1cfdc67d2128589618177fc15
5
5
  SHA512:
6
- metadata.gz: 5fc2daba88a41d5a514f6ba1d5840d662387828ea015d671c2209fd635bde2d005c75ea1db92d180c51eaa522153a89c3fa7a8a6d966f74870f79c894cfff92f
7
- data.tar.gz: 864f81182b61a2f39710dd9806426004f0ad8626061d49eb2f5e1357e3910597e724a88597837b66a682423daa092b86d9463211940c08f43ba48c02c4f2e6d4
6
+ metadata.gz: 22cf7cc50ca05fbf7a031488cfe63209c86645d9ceb60277bf7678fdde3c17967cb671febe82fe483ac8343ead9a4b62a627b721f6d2ccf055a96c3f2b26e0ad
7
+ data.tar.gz: 97793cf281add4e4bed36d7809d500fa894a9c025c72505ee3945774727b2432a46039dce4655e4199a933ee9ff581445218da142c868a12b5663b259aa43ea6
@@ -1,11 +1,11 @@
1
1
  #encoding: UTF-8
2
2
  When /^Espero que termine de cargar la pagina de desambiguacion$/ do
3
- Watir::Wait.until(timeout = 60){BROWSER.div(:class,'disambiguation-top grid_24 alpha omega').present?}
3
+ Watir::Wait.until(timeout = 60){BROWSER.div(:id,'disambiguation-message').present?}
4
4
  end
5
5
 
6
6
  Then /^Verifico que ingrese a la pagina de desambiguacion$/ do
7
- BROWSER.div(:class,"messages").should visible
8
- BROWSER.div(:class,"messages").text.should match("Por favor seleccione uno de los siguientes aeropuertos cercanos|Veja abaixo os aeroportos mais|Please choose one of the following nearby airports")
7
+ BROWSER.div(:id,"disambiguation-message").should visible
8
+ BROWSER.div(:id,"disambiguation-message").text.should match("Por favor seleccione uno de los siguientes aeropuertos cercanos|Veja abaixo os aeroportos mais|Please choose one of the following nearby airports")
9
9
  end
10
10
 
11
11
  When /^Seteo las edades de los menores$/ do
@@ -56,7 +56,6 @@ And /^Verifico si es un destino HOT$/ do
56
56
  mensaje_precio = "El destino es muy solicitado en estas fechas y los precios estan subiendo. \¡Te recomendamos reservar lo antes posible\!"
57
57
  if value > 33 and color
58
58
  puts "((#{seats_remaining.length} * 100)/#{json['result']['data']['items'].length}).to_i"
59
- puts seats_remaining
60
59
  puts color
61
60
  if BROWSER.div(:id,"banner-PRICE-#{color}").present?
62
61
  (value < 67).should be_true
@@ -71,7 +70,6 @@ And /^Verifico si es un destino HOT$/ do
71
70
  end
72
71
  else
73
72
  puts "((#{seats_remaining.length} * 100)/#{json['result']['data']['items'].length}).to_i"
74
- puts seats_remaining
75
73
  puts color
76
74
  BROWSER.div(:id,"banner-PRICE-HIGH").should_not visible("mensaje de suba de precio")
77
75
  BROWSER.div(:id,"banner-PRICE-LOW").should_not visible("mensaje de suba de precio")
@@ -77,13 +77,12 @@ end
77
77
 
78
78
  Then /^Verifico que el itinerario deseado quede en la lista de deseos$/ do
79
79
  sleep(1)
80
- byebug
81
80
  BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-header-favorites-popup').ul(:class,'nibbler-common-last-searches-body').should visible("lista de deseos")
82
81
  end
83
82
 
84
83
  Then /^Elijo el itinerario de la lista de deseos$/ do
85
84
  @url = BROWSER.url
86
- BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-header-favorites-popup').h4(:class,'nibbler-common-last-searches-body-content-title').click
85
+ BROWSER.execute_script("javascript:void($('.nibbler-common-header-favorites-popup .nibbler-common-last-searches-body-content-title').click())")
87
86
  end
88
87
 
89
88
  Then /^Verifico que dirija correctamente a la pagina de resultados$/ do
@@ -102,27 +101,28 @@ end
102
101
 
103
102
  Then /^Elimino el itinerario de la lista de deseos$/ do
104
103
  sleep(1)
105
- BROWSER.execute_script("javascript:void($('.action-delete').click());")
104
+ BROWSER.execute_script("javascript:void($('.nibbler-common-last-searches-footer-clear-all').click());")
106
105
  sleep(2)
107
- BROWSER.execute_script("javascript:void($('.action-delete').click());")
106
+ BROWSER.execute_script("javascript:void($('.nibbler-common-last-searches-footer-clear-all').click());")
108
107
  sleep(2)
109
108
  end
110
109
 
111
110
  Then /^Limpio la lista de deseos$/ do
112
- if BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-header-favorites-popup').div(:class,'nibbler-common-last-searches nibbler-common-with').present?
111
+ if BROWSER.link(:class,'nibbler-common-last-searches-footer-clear-all').present?
113
112
  sleep(1)
114
- BROWSER.execute_script("javascript:void($('.action-delete').click());")
113
+ BROWSER.execute_script("javascript:void($('.nibbler-common-last-searches-footer-clear-all').click());")
115
114
  sleep(2)
116
115
  end
117
116
  end
118
117
 
119
118
  Then /^Me deslogueo como usuario$/ do
120
- BROWSER.div(:id,'nibbler-common-header').link(:class,'social-logged').click if BROWSER.div(:id,'nibbler-common-header').link(:class,'social-logged').present?
121
- sleep(1)
119
+ BROWSER.div(:class,'nibbler-common-header-user').li(:class,'nibbler-common-header-user-item').click
120
+ Watir::Wait.until(timeout=20){BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').present?}
121
+ BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').link(:class,'nibbler-common-close-session').click if BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').link(:class,'nibbler-common-close-session').present?
122
+ BROWSER.div(:class,'nibbler-common-overlay nibbler-common-overlay-popover nibbler-common-overlay-bottom-left nibbler-common-login-overlay').span(:class,'nibbler-common-overlay-close').click
122
123
  end
123
124
 
124
125
  Then /^Verifico que no se muestre en el header el usuario logueado$/ do
125
- BROWSER.div(:id,'nibbler-common-header').link(:class,'button-login').should visible("boton de logueo")
126
- BROWSER.div(:id,'nibbler-common-header').div(:class,'fb-description').should_not visible("usuario logueado")
127
- BROWSER.div(:id,'nibbler-common-header').li(:class,'nibbler-common-header-favorites nibbler-user nibbler-common-header-favorites-has').should_not visible("corazon rojo en el header")
126
+ BROWSER.div(:class,'nibbler-common-header-user').div(:class,'fb-description').should_not visible("usuario logueado")
127
+ BROWSER.div(:class,'nibbler-common-header-user').li(:class,'nibbler-common-header-favorites nibbler-user nibbler-common-header-favorites-has').should_not visible("corazon rojo en el header")
128
128
  end
@@ -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 = '2.9.0' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
17
+ gem.version = '2.9.1' #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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_henry_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez