flights_gui_tests 0.5.6 → 0.5.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b66a9cfe4424cb7e4f61e8eda4e9e7178f0613e1
|
4
|
+
data.tar.gz: 02be7b07d8bec64514115e2d4528c5cf28165e36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866aee3def31d5094697457e479f980b5ca868171d8faebb0507952d4bc72d2e1da8b952dcfd59bc69acb2975e640271d0a221074301b36fcae31f853adabee1
|
7
|
+
data.tar.gz: 52b19b5d045064ae10d49bbcd6df069609898ff86195644f74ca0a4cc8f11525c697de34a92bdfd61ab734f623919a500b1a99696d173cfd12bbec124fc9cb0b
|
@@ -22,12 +22,17 @@ Entonces(/^verifico que se muestren las reviews de aerolineas$/) do
|
|
22
22
|
@page.enviar_tecla :escape
|
23
23
|
sleep(1)
|
24
24
|
@page.cerrar_popups
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
sleep(1)
|
26
|
+
begin
|
27
|
+
aerolinea.click
|
28
|
+
@page.popup_reviews_aerolineas_element.when_visible(timeout=10)
|
29
|
+
doc = Hpricot.parse(@page.popup_reviews_aerolineas_element.html)
|
30
|
+
@page.logo_aerolinea_en_matriz(index).should match((doc/"span.logo/img").first.attributes['src'].strip.downcase)
|
31
|
+
aerolinea.text.strip.downcase.should equal((doc/"h4.name").inner_text.strip.downcase)
|
32
|
+
@page.close_popup_reviews_aerolineas_element.click
|
33
|
+
@page.popup_reviews_aerolineas_element.when_not_visible(timeout=10)
|
34
|
+
rescue Selenium::WebDriver::Error::UnknownError
|
35
|
+
puts "No se pudo hacer click en la review de aerolinea"
|
36
|
+
end
|
32
37
|
end
|
33
38
|
end
|
data/flights_gui_tests.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.require_paths = ["lib"] # Usualmente es solo lib -> ["lib"]
|
16
16
|
|
17
|
-
gem.version = '0.5.
|
17
|
+
gem.version = '0.5.7' # 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.39')
|
20
20
|
gem.add_dependency('page-object')
|