flights_gui_tests 0.0.2 → 0.0.3

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: e574dba604d4ac94bd0265bf976688d0f5e120ba
4
- data.tar.gz: 7e1558216be3aafd69be09895bf4bdd10736cecd
3
+ metadata.gz: 07df470d97dcc960c3c6c223395e43e742e2b15c
4
+ data.tar.gz: 8f8feff98158bf2eba840bfed067c5026f627e3f
5
5
  SHA512:
6
- metadata.gz: 367eab5b48e79e6e47ed9f6aa09d66e5d1bbffbf0fb9228a0c278a295013914d859c62491ddbdb77d322702bb0f553d3367c2027e39e17a4dc6bf82cd491a343
7
- data.tar.gz: f26f6cc2f47b2bd050ac22695aa9cd49f7fc9da120cc322ed48a5f2a6968e74b99869d7134ca38866c427d4c1eb4f6f9029d9162c23e8b5b80939273f059cc45
6
+ metadata.gz: 3f8fad2e3a47a0c8718bcbec94b43d970d414b4c74db350452eb9b39b371fc332b3f69bef7f09fc80a8b787eb0bb9f2eb79fdf32d65aad4a57983a03b58cc7a1
7
+ data.tar.gz: 43b6b00807f6188d145239c04e54ae512ed8075e2c608ad93b44cb6fb145fa663fa48d4df1076cc09a9744eb4ecf35a9b5960e75deb6089bd9d5209942ff9ca6
@@ -4,8 +4,8 @@ Entonces(/^verifico que el mensaje de error en el cluster sea correcto$/) do
4
4
  clusters=@page.datos_de_itinerarios
5
5
  clusters.each_with_index do |cluster,i|
6
6
  if (cluster.idas.length>1 or (cluster.vueltas and cluster.vueltas.length>1))
7
- @page.buscar_elements[i].click
8
- @page.itinerarios_elements[i].li(:class=>'item error-message',:index=>((cluster.idas.length>1) ? 0 : 1)).text.no_accents.should match("Choose a (return|departure) flight|Por favor, seleccione un vuelo de|Por favor, selecione um voo de")
7
+ @page.div(:class=>"cluster",:index=>i).link(:class,"buy btn-buy flights-button").click
8
+ @page.div(:class=>"cluster",:index=>i).li(:class=>'item error-message',:index=>((cluster.idas.length>1) ? 0 : 1)).text.no_accents.should match("Choose a (return|departure) flight|Por favor, seleccione un vuelo de|Por favor, selecione um voo de")
9
9
  end
10
10
  end
11
11
  end
@@ -11,7 +11,7 @@ Cuando(/^verifico que las datos de la pagina sean consistente a la busqueda real
11
11
  html = Hpricot.parse(@page.html)
12
12
  (html/"span.search-info").inner_text.no_accents.downcase.should match(@page.manage_data.city_from_1.name.downcase)
13
13
  (html/"span.search-info").inner_text.no_accents.downcase.should match(@page.manage_data.city_to_1.name.downcase)
14
- (!(html/"div.search").length.zero?).should be_true
14
+ (!(html/"div.ux-search").length.zero?).should be_true
15
15
  (!(html/"div#flights-alerts").length.zero?).should be_true if @page.tipo_de_busqueda=="roundtrip"
16
16
  (!(html/"div#filters").length.zero?).should be_true
17
17
  end
@@ -15,7 +15,7 @@
15
15
 
16
16
  gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
17
17
 
18
- gem.version = '0.0.2' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
18
+ gem.version = '0.0.3' #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('page-object')
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: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez,lsimean