ruby-mobile-appium-template 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ruby-mobile-appium-template +3 -3
- data/lib/ruby_appium.rb +115 -115
- data/templates/.gitignore +255 -255
- data/templates/Gemfile +14 -14
- data/templates/config/android/appium.txt +17 -17
- data/templates/config/android/appium_farm.txt +21 -21
- data/templates/cucumber.yml +6 -6
- data/templates/features/login/data/login.yaml +3 -4
- data/templates/features/login/elements/screen_mappings_home.yaml +35 -35
- data/templates/features/login/elements/screen_mappings_login.yaml +43 -43
- data/templates/features/login/elements/screen_mappings_organizadorhome.yaml +29 -29
- data/templates/features/login/elements/screen_mappings_token.yaml +30 -30
- data/templates/features/login/features/login.feature +16 -16
- data/templates/features/login/pageobjects/home.rb +24 -24
- data/templates/features/login/pageobjects/login.rb +51 -51
- data/templates/features/login/pageobjects/organizadorHome.rb +16 -16
- data/templates/features/login/pageobjects/token.rb +19 -19
- data/templates/features/login/steps/login_steps.rb +30 -30
- data/templates/features/support/appium_custom.rb +64 -64
- data/templates/features/support/env.rb +21 -21
- data/templates/features/support/hooks.rb +17 -17
- data/templates/features/support/utils.rb +84 -84
- metadata +1 -1
@@ -1,35 +1,35 @@
|
|
1
|
-
ios:
|
2
|
-
xxxx:
|
3
|
-
tipo_busca: :xpath
|
4
|
-
value: ""
|
5
|
-
xxxx:
|
6
|
-
tipo_busca: :id
|
7
|
-
value: ""
|
8
|
-
xxxx:
|
9
|
-
tipo_busca: :class
|
10
|
-
value: ""
|
11
|
-
xxxx:
|
12
|
-
tipo_busca: :accessibility_id
|
13
|
-
value: ""
|
14
|
-
android:
|
15
|
-
telaWalkThrough:
|
16
|
-
tipo_busca: :xpath
|
17
|
-
value: "//android.widget.ImageView[1]"
|
18
|
-
btnWalkThrough:
|
19
|
-
tipo_busca: :xpath
|
20
|
-
value: "//android.widget.Button[contains(@text, 'Vamos começar?') or contains(@content-desc, 'Vamos começar?')]"
|
21
|
-
imagemHome:
|
22
|
-
tipo_busca: :xpath
|
23
|
-
value: "//android.widget.ImageView[2]"
|
24
|
-
xxxx:
|
25
|
-
tipo_busca: :xpath
|
26
|
-
value: ""
|
27
|
-
xxxx:
|
28
|
-
tipo_busca: :id
|
29
|
-
value: ""
|
30
|
-
xxxx:
|
31
|
-
tipo_busca: :class
|
32
|
-
value: ""
|
33
|
-
xxxx:
|
34
|
-
tipo_busca: :accessibility_id
|
35
|
-
value: ""
|
1
|
+
ios:
|
2
|
+
xxxx:
|
3
|
+
tipo_busca: :xpath
|
4
|
+
value: ""
|
5
|
+
xxxx:
|
6
|
+
tipo_busca: :id
|
7
|
+
value: ""
|
8
|
+
xxxx:
|
9
|
+
tipo_busca: :class
|
10
|
+
value: ""
|
11
|
+
xxxx:
|
12
|
+
tipo_busca: :accessibility_id
|
13
|
+
value: ""
|
14
|
+
android:
|
15
|
+
telaWalkThrough:
|
16
|
+
tipo_busca: :xpath
|
17
|
+
value: "//android.widget.ImageView[1]"
|
18
|
+
btnWalkThrough:
|
19
|
+
tipo_busca: :xpath
|
20
|
+
value: "//android.widget.Button[contains(@text, 'Vamos começar?') or contains(@content-desc, 'Vamos começar?')]"
|
21
|
+
imagemHome:
|
22
|
+
tipo_busca: :xpath
|
23
|
+
value: "//android.widget.ImageView[2]"
|
24
|
+
xxxx:
|
25
|
+
tipo_busca: :xpath
|
26
|
+
value: ""
|
27
|
+
xxxx:
|
28
|
+
tipo_busca: :id
|
29
|
+
value: ""
|
30
|
+
xxxx:
|
31
|
+
tipo_busca: :class
|
32
|
+
value: ""
|
33
|
+
xxxx:
|
34
|
+
tipo_busca: :accessibility_id
|
35
|
+
value: ""
|
@@ -1,44 +1,44 @@
|
|
1
|
-
ios:
|
2
|
-
x1:
|
3
|
-
tipo_busca: :xpath
|
4
|
-
value: ""
|
5
|
-
x2:
|
6
|
-
tipo_busca: :id
|
7
|
-
value: ""
|
8
|
-
x3:
|
9
|
-
tipo_busca: :class
|
10
|
-
value: ""
|
11
|
-
x4:
|
12
|
-
tipo_busca: :accessibility_id
|
13
|
-
value: ""
|
14
|
-
android:
|
15
|
-
campoCPF:
|
16
|
-
tipo_busca: :xpath
|
17
|
-
value: "//android.view.View[contains(@text,'Digite aqui') or contains(@content-desc,'Digite aqui')]"
|
18
|
-
preencherCpf:
|
19
|
-
tipo_busca: :xpath
|
20
|
-
value: "//android.widget.EditText"
|
21
|
-
preencherSenha:
|
22
|
-
tipo_busca: :xpath
|
23
|
-
value: "//android.widget.EditText[contains(@text,'Digite sua senha')]"
|
24
|
-
btnContinuar:
|
25
|
-
tipo_busca: :xpath
|
26
|
-
value: "//android.widget.Button[contains(@text,'Continuar') or contains(@content-desc,'Continuar')]"
|
27
|
-
btnAtivarAcessoBio:
|
28
|
-
tipo_busca: :xpath
|
29
|
-
value: "//android.widget.Button[contains(@text,'Ativar acesso por biometria') or contains(@content-desc,'Ativar acesso por biometria')]"
|
30
|
-
btnDeixarParaDepois:
|
31
|
-
tipo_busca: :xpath
|
32
|
-
value: "//android.view.View[contains(@text,'Deixar para depois') or contains(@content-desc,'Deixar para depois')]"
|
33
|
-
btnOkEntendiBio:
|
34
|
-
tipo_busca: :xpath
|
35
|
-
value: "//android.widget.Button[contains(@text,'Ok, entendi') or contains(@content-desc,'Ok, entendi')]"
|
36
|
-
x1:
|
37
|
-
tipo_busca: :id
|
38
|
-
value: ""
|
39
|
-
x2:
|
40
|
-
tipo_busca: :class
|
41
|
-
value: ""
|
42
|
-
x3:
|
43
|
-
tipo_busca: :accessibility_id
|
1
|
+
ios:
|
2
|
+
x1:
|
3
|
+
tipo_busca: :xpath
|
4
|
+
value: ""
|
5
|
+
x2:
|
6
|
+
tipo_busca: :id
|
7
|
+
value: ""
|
8
|
+
x3:
|
9
|
+
tipo_busca: :class
|
10
|
+
value: ""
|
11
|
+
x4:
|
12
|
+
tipo_busca: :accessibility_id
|
13
|
+
value: ""
|
14
|
+
android:
|
15
|
+
campoCPF:
|
16
|
+
tipo_busca: :xpath
|
17
|
+
value: "//android.view.View[contains(@text,'Digite aqui') or contains(@content-desc,'Digite aqui')]"
|
18
|
+
preencherCpf:
|
19
|
+
tipo_busca: :xpath
|
20
|
+
value: "//android.widget.EditText"
|
21
|
+
preencherSenha:
|
22
|
+
tipo_busca: :xpath
|
23
|
+
value: "//android.widget.EditText[contains(@text,'Digite sua senha')]"
|
24
|
+
btnContinuar:
|
25
|
+
tipo_busca: :xpath
|
26
|
+
value: "//android.widget.Button[contains(@text,'Continuar') or contains(@content-desc,'Continuar')]"
|
27
|
+
btnAtivarAcessoBio:
|
28
|
+
tipo_busca: :xpath
|
29
|
+
value: "//android.widget.Button[contains(@text,'Ativar acesso por biometria') or contains(@content-desc,'Ativar acesso por biometria')]"
|
30
|
+
btnDeixarParaDepois:
|
31
|
+
tipo_busca: :xpath
|
32
|
+
value: "//android.view.View[contains(@text,'Deixar para depois') or contains(@content-desc,'Deixar para depois')]"
|
33
|
+
btnOkEntendiBio:
|
34
|
+
tipo_busca: :xpath
|
35
|
+
value: "//android.widget.Button[contains(@text,'Ok, entendi') or contains(@content-desc,'Ok, entendi')]"
|
36
|
+
x1:
|
37
|
+
tipo_busca: :id
|
38
|
+
value: ""
|
39
|
+
x2:
|
40
|
+
tipo_busca: :class
|
41
|
+
value: ""
|
42
|
+
x3:
|
43
|
+
tipo_busca: :accessibility_id
|
44
44
|
value: ""
|
@@ -1,29 +1,29 @@
|
|
1
|
-
ios:
|
2
|
-
xxxx:
|
3
|
-
tipo_busca: :xpath
|
4
|
-
value: ""
|
5
|
-
xxxx:
|
6
|
-
tipo_busca: :id
|
7
|
-
value: ""
|
8
|
-
xxxx:
|
9
|
-
tipo_busca: :class
|
10
|
-
value: ""
|
11
|
-
xxxx:
|
12
|
-
tipo_busca: :accessibility_id
|
13
|
-
value: ""
|
14
|
-
android:
|
15
|
-
perfil:
|
16
|
-
tipo_busca: :xpath
|
17
|
-
value: "//android.view.View"
|
18
|
-
logo:
|
19
|
-
tipo_busca: :xpath
|
20
|
-
value: "//android.widget.ImageView"
|
21
|
-
xxxx:
|
22
|
-
tipo_busca: :id
|
23
|
-
value: ""
|
24
|
-
xxxx:
|
25
|
-
tipo_busca: :class
|
26
|
-
value: ""
|
27
|
-
xxxx:
|
28
|
-
tipo_busca: :accessibility_id
|
29
|
-
value: ""
|
1
|
+
ios:
|
2
|
+
xxxx:
|
3
|
+
tipo_busca: :xpath
|
4
|
+
value: ""
|
5
|
+
xxxx:
|
6
|
+
tipo_busca: :id
|
7
|
+
value: ""
|
8
|
+
xxxx:
|
9
|
+
tipo_busca: :class
|
10
|
+
value: ""
|
11
|
+
xxxx:
|
12
|
+
tipo_busca: :accessibility_id
|
13
|
+
value: ""
|
14
|
+
android:
|
15
|
+
perfil:
|
16
|
+
tipo_busca: :xpath
|
17
|
+
value: "//android.view.View"
|
18
|
+
logo:
|
19
|
+
tipo_busca: :xpath
|
20
|
+
value: "//android.widget.ImageView"
|
21
|
+
xxxx:
|
22
|
+
tipo_busca: :id
|
23
|
+
value: ""
|
24
|
+
xxxx:
|
25
|
+
tipo_busca: :class
|
26
|
+
value: ""
|
27
|
+
xxxx:
|
28
|
+
tipo_busca: :accessibility_id
|
29
|
+
value: ""
|
@@ -1,30 +1,30 @@
|
|
1
|
-
ios:
|
2
|
-
xxxx:
|
3
|
-
tipo_busca: :xpath
|
4
|
-
value: ""
|
5
|
-
xxxx:
|
6
|
-
tipo_busca: :id
|
7
|
-
value: ""
|
8
|
-
xxxx:
|
9
|
-
tipo_busca: :class
|
10
|
-
value: ""
|
11
|
-
xxxx:
|
12
|
-
tipo_busca: :accessibility_id
|
13
|
-
value: ""
|
14
|
-
android:
|
15
|
-
btnDeixarParaDepois:
|
16
|
-
tipo_busca: :xpath
|
17
|
-
value: "//android.view.View[contains(@text,'Deixar para depois') or contains(@content-desc,'Deixar para depois')]"
|
18
|
-
prevwIrTelaInicialencherCpf:
|
19
|
-
tipo_busca: :xpath
|
20
|
-
value: "//android.view.View[contains(@text,'Ir para a tela inicial') or contains(@content-desc,'Ir para a tela inicial')]"
|
21
|
-
xxxx:
|
22
|
-
tipo_busca: :id
|
23
|
-
value: ""
|
24
|
-
xxxx:
|
25
|
-
tipo_busca: :class
|
26
|
-
value: ""
|
27
|
-
xxxx:
|
28
|
-
tipo_busca: :accessibility_id
|
29
|
-
value: ""
|
30
|
-
|
1
|
+
ios:
|
2
|
+
xxxx:
|
3
|
+
tipo_busca: :xpath
|
4
|
+
value: ""
|
5
|
+
xxxx:
|
6
|
+
tipo_busca: :id
|
7
|
+
value: ""
|
8
|
+
xxxx:
|
9
|
+
tipo_busca: :class
|
10
|
+
value: ""
|
11
|
+
xxxx:
|
12
|
+
tipo_busca: :accessibility_id
|
13
|
+
value: ""
|
14
|
+
android:
|
15
|
+
btnDeixarParaDepois:
|
16
|
+
tipo_busca: :xpath
|
17
|
+
value: "//android.view.View[contains(@text,'Deixar para depois') or contains(@content-desc,'Deixar para depois')]"
|
18
|
+
prevwIrTelaInicialencherCpf:
|
19
|
+
tipo_busca: :xpath
|
20
|
+
value: "//android.view.View[contains(@text,'Ir para a tela inicial') or contains(@content-desc,'Ir para a tela inicial')]"
|
21
|
+
xxxx:
|
22
|
+
tipo_busca: :id
|
23
|
+
value: ""
|
24
|
+
xxxx:
|
25
|
+
tipo_busca: :class
|
26
|
+
value: ""
|
27
|
+
xxxx:
|
28
|
+
tipo_busca: :accessibility_id
|
29
|
+
value: ""
|
30
|
+
|
@@ -1,16 +1,16 @@
|
|
1
|
-
#language: en
|
2
|
-
#encoding: utf-8
|
3
|
-
|
4
|
-
@login
|
5
|
-
Feature: Login
|
6
|
-
|
7
|
-
Background:
|
8
|
-
Given eu tenha as paginas necessárias iniciadas
|
9
|
-
And o arquivo de massa de dados
|
10
|
-
|
11
|
-
@login_valido
|
12
|
-
Scenario: Login efetuado com sucesso
|
13
|
-
Given que estou na tela inicial
|
14
|
-
When insiro as minhas credenciais de acesso
|
15
|
-
Then sou direcionado a home de Conta
|
16
|
-
|
1
|
+
#language: en
|
2
|
+
#encoding: utf-8
|
3
|
+
|
4
|
+
@login
|
5
|
+
Feature: Login
|
6
|
+
|
7
|
+
Background:
|
8
|
+
Given eu tenha as paginas necessárias iniciadas
|
9
|
+
And o arquivo de massa de dados
|
10
|
+
|
11
|
+
@login_valido
|
12
|
+
Scenario: Login efetuado com sucesso
|
13
|
+
Given que estou na tela inicial
|
14
|
+
When insiro as minhas credenciais de acesso
|
15
|
+
Then sou direcionado a home de Conta
|
16
|
+
|
@@ -1,24 +1,24 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
class HomePage
|
3
|
-
|
4
|
-
def initialize
|
5
|
-
get_screen_mappings 'home', 'login'
|
6
|
-
end
|
7
|
-
|
8
|
-
def is_home?
|
9
|
-
if $platform == 'android'
|
10
|
-
wait_for_element_exist(@mappings['imagemHome'])
|
11
|
-
end
|
12
|
-
if $platform == 'ios'
|
13
|
-
wait_for_element_exists(@mappings['imagemHome'])
|
14
|
-
find(@mappings['telaWalkThrough']).click
|
15
|
-
end
|
16
|
-
wait_for_element_exist(@mappings['telaWalkThrough'])
|
17
|
-
end
|
18
|
-
|
19
|
-
def pulaWalkThrough
|
20
|
-
swipe_orientation(@mappings['telaWalkThrough'], @mappings['btnWalkThrough'], "up")
|
21
|
-
find(@mappings['btnWalkThrough']).click
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
class HomePage
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
get_screen_mappings 'home', 'login'
|
6
|
+
end
|
7
|
+
|
8
|
+
def is_home?
|
9
|
+
if $platform == 'android'
|
10
|
+
wait_for_element_exist(@mappings['imagemHome'])
|
11
|
+
end
|
12
|
+
if $platform == 'ios'
|
13
|
+
wait_for_element_exists(@mappings['imagemHome'])
|
14
|
+
find(@mappings['telaWalkThrough']).click
|
15
|
+
end
|
16
|
+
wait_for_element_exist(@mappings['telaWalkThrough'])
|
17
|
+
end
|
18
|
+
|
19
|
+
def pulaWalkThrough
|
20
|
+
swipe_orientation(@mappings['telaWalkThrough'], @mappings['btnWalkThrough'], "up")
|
21
|
+
find(@mappings['btnWalkThrough']).click
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
@@ -1,52 +1,52 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
class LoginPage
|
3
|
-
|
4
|
-
def initialize
|
5
|
-
get_screen_mappings 'login', 'login'
|
6
|
-
end
|
7
|
-
def login(cpf, senha)
|
8
|
-
preencheCPF(cpf)
|
9
|
-
continuar()
|
10
|
-
preencheSenha(senha)
|
11
|
-
continuar()
|
12
|
-
end
|
13
|
-
|
14
|
-
def preencheCPF cpf
|
15
|
-
wait_for_element_exist(@mappings['preencherCpf'])
|
16
|
-
send_keys_digital_keyboard(@mappings['preencherCpf'], cpf)
|
17
|
-
screenshot ('Page - Preenche CPF')
|
18
|
-
end
|
19
|
-
|
20
|
-
def preencheSenha senha
|
21
|
-
wait_for_element_exist(@mappings['preencherSenha'])
|
22
|
-
send_keys_digital_keyboard(@mappings['preencherSenha'], senha)
|
23
|
-
screenshot ('Page - Preenche Senha')
|
24
|
-
end
|
25
|
-
|
26
|
-
def continuar
|
27
|
-
screenshot('PAGE - Continuar')
|
28
|
-
find(@mappings['btnContinuar']).click
|
29
|
-
end
|
30
|
-
|
31
|
-
def clickCPF
|
32
|
-
if android?
|
33
|
-
wait_for_element_exist(@mappings['campoCPF'])
|
34
|
-
find(@mappings['campoCPF']).click
|
35
|
-
elsif ios?
|
36
|
-
wait_for_element_exist(@mappings['campoCPF'])
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
def pulaBiometria
|
41
|
-
if android?
|
42
|
-
screenshot("Pular Biometria")
|
43
|
-
if wait_for_element_exist(@mappings['btnAtivarAcessoBio'])
|
44
|
-
puts("Biometria?#{wait_for_element_exist(@mappings['btnAtivarAcessoBio'])}")
|
45
|
-
wait_for_element_exist(@mappings['btnDeixarParaDepois'])
|
46
|
-
find(@mappings['btnDeixarParaDepois']).click
|
47
|
-
find(@mappings['btnOkEntendiBio']).click
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
class LoginPage
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
get_screen_mappings 'login', 'login'
|
6
|
+
end
|
7
|
+
def login(cpf, senha)
|
8
|
+
preencheCPF(cpf)
|
9
|
+
continuar()
|
10
|
+
preencheSenha(senha)
|
11
|
+
continuar()
|
12
|
+
end
|
13
|
+
|
14
|
+
def preencheCPF cpf
|
15
|
+
wait_for_element_exist(@mappings['preencherCpf'])
|
16
|
+
send_keys_digital_keyboard(@mappings['preencherCpf'], cpf)
|
17
|
+
screenshot ('Page - Preenche CPF')
|
18
|
+
end
|
19
|
+
|
20
|
+
def preencheSenha senha
|
21
|
+
wait_for_element_exist(@mappings['preencherSenha'])
|
22
|
+
send_keys_digital_keyboard(@mappings['preencherSenha'], senha)
|
23
|
+
screenshot ('Page - Preenche Senha')
|
24
|
+
end
|
25
|
+
|
26
|
+
def continuar
|
27
|
+
screenshot('PAGE - Continuar')
|
28
|
+
find(@mappings['btnContinuar']).click
|
29
|
+
end
|
30
|
+
|
31
|
+
def clickCPF
|
32
|
+
if android?
|
33
|
+
wait_for_element_exist(@mappings['campoCPF'])
|
34
|
+
find(@mappings['campoCPF']).click
|
35
|
+
elsif ios?
|
36
|
+
wait_for_element_exist(@mappings['campoCPF'])
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def pulaBiometria
|
41
|
+
if android?
|
42
|
+
screenshot("Pular Biometria")
|
43
|
+
if wait_for_element_exist(@mappings['btnAtivarAcessoBio'])
|
44
|
+
puts("Biometria?#{wait_for_element_exist(@mappings['btnAtivarAcessoBio'])}")
|
45
|
+
wait_for_element_exist(@mappings['btnDeixarParaDepois'])
|
46
|
+
find(@mappings['btnDeixarParaDepois']).click
|
47
|
+
find(@mappings['btnOkEntendiBio']).click
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
52
|
end
|
@@ -1,16 +1,16 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
class OrganizadorHomePage
|
3
|
-
|
4
|
-
def initialize
|
5
|
-
get_screen_mappings 'organizadorhome', 'login'
|
6
|
-
end
|
7
|
-
|
8
|
-
def is_page?
|
9
|
-
wait_for_element_exist(@mappings['perfil'])
|
10
|
-
wait_for_element_exist(@mappings['logo'])
|
11
|
-
screenshot('Home APP')
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
class OrganizadorHomePage
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
get_screen_mappings 'organizadorhome', 'login'
|
6
|
+
end
|
7
|
+
|
8
|
+
def is_page?
|
9
|
+
wait_for_element_exist(@mappings['perfil'])
|
10
|
+
wait_for_element_exist(@mappings['logo'])
|
11
|
+
screenshot('Home APP')
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
|
@@ -1,19 +1,19 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
class TokenPage
|
3
|
-
require 'pry'
|
4
|
-
require 'rest-client'
|
5
|
-
require 'json'
|
6
|
-
|
7
|
-
def initialize
|
8
|
-
get_screen_mappings 'token', 'login'
|
9
|
-
end
|
10
|
-
|
11
|
-
def pularToken
|
12
|
-
if find(@mappings['btnDeixarParaDepois']).displayed?
|
13
|
-
@mappings['btnDeixarParaDepois'].click
|
14
|
-
screenshot('Page - Pular Token')
|
15
|
-
@mappings['vwIrTelaInicial'].click
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
class TokenPage
|
3
|
+
require 'pry'
|
4
|
+
require 'rest-client'
|
5
|
+
require 'json'
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
get_screen_mappings 'token', 'login'
|
9
|
+
end
|
10
|
+
|
11
|
+
def pularToken
|
12
|
+
if find(@mappings['btnDeixarParaDepois']).displayed?
|
13
|
+
@mappings['btnDeixarParaDepois'].click
|
14
|
+
screenshot('Page - Pular Token')
|
15
|
+
@mappings['vwIrTelaInicial'].click
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
@@ -1,30 +1,30 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require 'rspec/expectations'
|
3
|
-
require 'pry'
|
4
|
-
|
5
|
-
Given('eu tenha as paginas necessárias iniciadas') do
|
6
|
-
@login = LoginPages.new
|
7
|
-
end
|
8
|
-
|
9
|
-
And('o arquivo de massa de dados') do
|
10
|
-
@datalogin = init_data("login")
|
11
|
-
end
|
12
|
-
|
13
|
-
Given(/^que estou na tela inicial$/) do
|
14
|
-
print "Entrou no step"
|
15
|
-
expect(@login.home.is_home?).to be true
|
16
|
-
@login.home.pulaWalkThrough
|
17
|
-
@login.login.clickCPF
|
18
|
-
end
|
19
|
-
|
20
|
-
When(/^insiro as minhas credenciais de acesso$/) do
|
21
|
-
@login.login.login(@datalogin["login"]["ativada"]["cpf"], @datalogin["login"]["ativada"]["senha"])
|
22
|
-
end
|
23
|
-
|
24
|
-
Then(/^sou direcionado a home de Conta$/) do
|
25
|
-
@login.login.pulaBiometria
|
26
|
-
if @login.token.pularToken
|
27
|
-
@login.organizadorHome.is_page?
|
28
|
-
end
|
29
|
-
@login.organizadorHome.is_page?
|
30
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rspec/expectations'
|
3
|
+
require 'pry'
|
4
|
+
|
5
|
+
Given('eu tenha as paginas necessárias iniciadas') do
|
6
|
+
@login = LoginPages.new
|
7
|
+
end
|
8
|
+
|
9
|
+
And('o arquivo de massa de dados') do
|
10
|
+
@datalogin = init_data("login")
|
11
|
+
end
|
12
|
+
|
13
|
+
Given(/^que estou na tela inicial$/) do
|
14
|
+
print "Entrou no step"
|
15
|
+
expect(@login.home.is_home?).to be true
|
16
|
+
@login.home.pulaWalkThrough
|
17
|
+
@login.login.clickCPF
|
18
|
+
end
|
19
|
+
|
20
|
+
When(/^insiro as minhas credenciais de acesso$/) do
|
21
|
+
@login.login.login(@datalogin["login"]["ativada"]["cpf"], @datalogin["login"]["ativada"]["senha"])
|
22
|
+
end
|
23
|
+
|
24
|
+
Then(/^sou direcionado a home de Conta$/) do
|
25
|
+
@login.login.pulaBiometria
|
26
|
+
if @login.token.pularToken
|
27
|
+
@login.organizadorHome.is_page?
|
28
|
+
end
|
29
|
+
@login.organizadorHome.is_page?
|
30
|
+
end
|