flights_gui_tests 2.2.7 → 2.2.8

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: 7d1e0a4b8f20030c004c26b31ea907861b941832
4
- data.tar.gz: 2386f79ab5dab259cb912702637ae8c83f5acc86
3
+ metadata.gz: 4d1ca74ef4d974892c06234bd1ca9edad91cee62
4
+ data.tar.gz: 96a5f7914bc90e945a94f5d9dbef54086e66bfeb
5
5
  SHA512:
6
- metadata.gz: 93cd2886038b404e0df6049564e5b6585b031343adf75dda645cf005ed644e20e4a11907064673202b65c36624ba9fcfc15d7217828df8bfccc8c75d12bab560
7
- data.tar.gz: fe471a5b716dddf7666ad6c74a5be1e693a147982ca1415d0c68f08d17ef6a384c5bbc823e76bfef953c67bd58020de39f03939a7d011e7f4f8bfdb5683a1ca0
6
+ metadata.gz: 593e42452fbd206076aafd6628dd524a5c27e36fdbe474f43e0b00695841c7cf3e8563bcbd5953c50c32915450b28939b3f72002690678ab1f198299a62956fe
7
+ data.tar.gz: 6a842f2508b3b68c193ff4ddf06cf841eba22ab2af896f29f2c5530d7982f683cfd00a2452e3efe469b23d14811300ae736bbcd158a9d9da2845cf50562d2b0c
@@ -94,12 +94,16 @@ module Checkout
94
94
  "checkout"
95
95
  end
96
96
 
97
+ def get_tracking_info
98
+ tracking_info = buscar_script_con_texto("trackingInfo")
99
+ JSON.parse(tracking_info.first.inner_text.strip.match(/trackingInfo \= (.+)\;/)[1])
100
+ end
101
+
97
102
  def provider
98
103
  if @provider
99
104
  return @provider
100
105
  else
101
- traking_info = buscar_script_con_texto("trackingInfo")
102
- @provider = traking_info.first.inner_text.match("(.+)provider\":\"(.+)\",\"p")[2]
106
+ @provider = get_tracking_info["provider"]
103
107
  end
104
108
  end
105
109
 
@@ -108,4 +112,4 @@ module Checkout
108
112
  end
109
113
 
110
114
  end
111
- end
115
+ end
@@ -8,8 +8,8 @@ module Landing
8
8
  include Pages::Cookies
9
9
 
10
10
  elements(:buscar,:link,:css=>".flights-cluster .btn-buy")
11
- elements(:opciones_ida,:radio,:name=>"0-outbound")
12
- elements(:opciones_vuelta,:radio,:name=>"0-inbound")
11
+ elements(:opciones_ida,:radio,:name=>/outbound/)
12
+ elements(:opciones_vuelta,:radio,:name=>/inbound/)
13
13
  elements(:itinerarios, :div, :css=>"#clusters .cluster")
14
14
  elements(:filtros_salidas,:checkbox,:css=>".ux-flights-filter-departures input")
15
15
  elements(:paginas,:li,:css=>".flights-pagination .page")
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.2.7"
2
+ VERSION = "2.2.8"
3
3
  end
@@ -15,7 +15,6 @@ Característica: landing.tags
15
15
  Entonces verifico que la pagina no rompa
16
16
  Entonces verifico que traiga resultados de landing
17
17
  Y verifico que la url sea la correcta
18
- Y verifico el pixel de e-planning
19
18
  Y verifico el primer tag de google en resultado
20
19
  Y verifico el segundo tag de google en resultado de landing
21
20
  Y verifico el tag de groovinads
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-02 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container