flights_gui_tests 2.3.33 → 2.3.34

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: 62585d394b6410d8d3d180cbdcb3ee771c737bd0
4
- data.tar.gz: 01160463a2e5b90807ca17754b238c288a9d26ba
3
+ metadata.gz: 2a2071f7d9210b419c95e40816175a6edd6b9b63
4
+ data.tar.gz: 4e93ab62f79ebccf6738ffa47066b839809fdb0d
5
5
  SHA512:
6
- metadata.gz: c682e79daff715ba8a1f2ec5e8e1afc90b1ed178ed8807b20bd578fc5d3ac0ca09c1a634b3669db709d01b990dca6069a02298db80b0bce8feb34ebbe180e52b
7
- data.tar.gz: 9c824ba232c8b9afdbf6ad2e4788f5c2b4c0ba93b21e5d4c27fc750088c5db2c8dcbaa2ee0929ca4f441d2998b0dc98d437aab140e5d8a65e0b0022615b60a23
6
+ metadata.gz: 64a8ff053b1679f72c9c056f1fb7d3aab0b4df6233a1cb67b38dfa354975bc70f4be3c454016058d128d1025532147eada5fac9423e861b234dee90411bd1337
7
+ data.tar.gz: 03d7da3ee4bb302539ca69e0e26fd573c062a1a92e689c60b8d4fd07e55e58dabb8d8cf05193e2198836138d85a42cd474c51733bb824a54474bd8f29d42155b
@@ -17,6 +17,7 @@ module NewCheckout
17
17
  div(:edades_adultos,:id=>"birthday-group-0")
18
18
 
19
19
  PLUS_NAME = ["A","B","C","D","E","F","G","H","I","J","k"]
20
+ RUTS = ["24434735-5","21225723-0","24030075-3","12474266-8","23669926-9","22016676-7","7028168-6","22439590-6","19124113-4","22522720-9","19854797-2","20313663-3"]
20
21
 
21
22
  def cargar_adultos
22
23
  @index = 0
@@ -24,9 +25,17 @@ module NewCheckout
24
25
  self.manage_data.adt.times do |adulto|
25
26
  nombre_elements[@index].set "Diego QA#{PLUS_NAME[@index]}"
26
27
  apellido_elements[@index].set "Romero#{PLUS_NAME[@index]}"
27
- documento_elements[@index].set "3245673#{@index}" if documento_elements[@index]
28
28
  nacionalidad_elements[@index].select_value(AllPages.site) if nacionalidad_elements[@index]
29
- tipo_documento_elements[@index].select_value(AllPages.site.match("AR|BR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
29
+ if AllPages.site=="CL"
30
+ tipo_documento_elements[@index].select_value("LOCAL") if tipo_documento_elements[@index]
31
+ documento_elements[@index].set(RUTS[@index]) if documento_elements[@index]
32
+ elsif AllPages.site.match("AR|BR")
33
+ tipo_documento_elements[@index].select_value("LOCAL") if tipo_documento_elements[@index]
34
+ documento_elements[@index].set "3245673#{@index}" if documento_elements[@index]
35
+ else
36
+ tipo_documento_elements[@index].select_value("PASSPORT") if tipo_documento_elements[@index]
37
+ documento_elements[@index].set "3245673#{@index}" if documento_elements[@index]
38
+ end
30
39
  sexo_elements[@index].select_value("MALE") if sexo_elements[@index]
31
40
  if edades_adultos?
32
41
  dia_nacimiento_elements[@index_menores].select(@index+1)
@@ -41,9 +50,17 @@ module NewCheckout
41
50
  self.manage_data.cnn.times do |nino|
42
51
  nombre_elements[@index].set "Martin QA#{PLUS_NAME[@index]}"
43
52
  apellido_elements[@index].set "Diez jr#{PLUS_NAME[@index]}"
44
- documento_elements[@index].set "4245663#{@index}" if documento_elements[@index]
45
53
  nacionalidad_elements[@index].select_value(AllPages.site) if nacionalidad_elements[@index]
46
- tipo_documento_elements[@index].select_value(AllPages.site.match("AR|BR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
54
+ if AllPages.site=="CL"
55
+ tipo_documento_elements[@index].select_value("LOCAL") if tipo_documento_elements[@index]
56
+ documento_elements[@index].set(RUTS[@index]) if documento_elements[@index]
57
+ elsif AllPages.site.match("AR|BR")
58
+ tipo_documento_elements[@index].select_value("LOCAL") if tipo_documento_elements[@index]
59
+ documento_elements[@index].set "4245663#{@index}" if documento_elements[@index]
60
+ else
61
+ tipo_documento_elements[@index].select_value("PASSPORT") if tipo_documento_elements[@index]
62
+ documento_elements[@index].set "3245673#{@index}" if documento_elements[@index]
63
+ end
47
64
  sexo_elements[@index].select_value("MALE") if sexo_elements[@index]
48
65
  dia_nacimiento_elements[@index_menores].select(@index+1)
49
66
  mes_nacimiento_elements[@index_menores].select(3)
@@ -56,9 +73,17 @@ module NewCheckout
56
73
  self.manage_data.inf.times do |bebe|
57
74
  nombre_elements[@index].set "Maribel QA#{PLUS_NAME[@index]}"
58
75
  apellido_elements[@index].set "Dias Herr jrb#{PLUS_NAME[@index]}"
59
- documento_elements[@index].set "4249966#{@index}" if documento_elements[@index]
60
76
  nacionalidad_elements[@index].select_value(AllPages.site) if nacionalidad_elements[@index]
61
- tipo_documento_elements[@index].select_value(AllPages.site.match("AR|BR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
77
+ if AllPages.site=="CL"
78
+ tipo_documento_elements[@index].select_value("LOCAL") if tipo_documento_elements[@index]
79
+ documento_elements[@index].set(RUTS[@index]) if documento_elements[@index]
80
+ elsif AllPages.site.match("AR|BR")
81
+ tipo_documento_elements[@index].select_value("LOCAL") if tipo_documento_elements[@index]
82
+ documento_elements[@index].set "4249966#{@index}" if documento_elements[@index]
83
+ else
84
+ tipo_documento_elements[@index].select_value("PASSPORT") if tipo_documento_elements[@index]
85
+ documento_elements[@index].set "3245673#{@index}" if documento_elements[@index]
86
+ end
62
87
  sexo_elements[@index].select_value("MALE") if sexo_elements[@index]
63
88
  dia_nacimiento_elements[@index_menores].select(@index+1)
64
89
  mes_nacimiento_elements[@index_menores].select(3)
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.3.33"
2
+ VERSION = "2.3.34"
3
3
  end
@@ -254,7 +254,7 @@ Característica: checkout.popup_cambio_vuelo
254
254
  Entonces espero que termine el pedido de compra
255
255
  Y verifico si no trae errores
256
256
  Y verifico que se muestre el popup de cambio de vuelo
257
- Entonces elijo un itinerario del popup de no disponibilidad
257
+ Entonces elijo un itinerario del popup de cambio de vuelo
258
258
  Y espero que termine de cargar la pagina de checkout
259
259
  Y verifico que ingrese al checkout
260
260
 
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.3.33
4
+ version: 2.3.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez