Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
430078e8
Commit
430078e8
authored
Sep 20, 2015
by
anonym
Browse files
Merge remote-tracking branch 'kytv/test/10222-pidgin-certificates' into stable
Fix-committed:
#10222
parents
efde2cbf
f92bc6e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/step_definitions/pidgin.rb
View file @
430078e8
...
...
@@ -18,6 +18,15 @@ EOF
return
account
end
def
wait_and_focus
(
img
,
time
=
10
,
window
)
begin
@screen
.
wait
(
img
,
time
)
rescue
FindFailed
@vm
.
focus_window
(
window
)
@screen
.
wait
(
img
,
time
)
end
end
def
focus_pidgin_irc_conversation_window
(
account
)
account
=
account
.
sub
(
/^irc\./
,
''
)
@vm
.
focus_window
(
".*
#{
Regexp
.
escape
(
account
)
}
$"
)
...
...
@@ -395,18 +404,19 @@ end
Then
/^I can add a certificate from the "([^"]+)" directory to Pidgin$/
do
|
cert_dir
|
next
if
@skip_steps_while_restoring_background
pidgin_add_certificate_from
(
"
#{
cert_dir
}
/test.crt"
)
@screen
.
wait
(
'PidginCertificateAddHostnameDialog.png'
,
10
)
wait_and_focus
(
'PidginCertificateAddHostnameDialog.png'
,
10
,
'Certificate Import'
)
@screen
.
type
(
"XXX test XXX"
+
Sikuli
::
Key
.
ENTER
)
@screen
.
wait
(
'PidginCertificateTestItem.png'
,
10
)
wait_and_focus
(
'PidginCertificateTestItem.png'
,
10
,
'Certificate Manager'
)
end
Then
/^I cannot add a certificate from the "([^"]+)" directory to Pidgin$/
do
|
cert_dir
|
next
if
@skip_steps_while_restoring_background
pidgin_add_certificate_from
(
"
#{
cert_dir
}
/test.crt"
)
@screen
.
wait
(
'PidginCertificateImportFailed.png'
,
10
)
wait_and_focus
(
'PidginCertificateImportFailed.png'
,
10
,
'Import Error'
)
end
When
/^I close Pidgin's certificate manager$/
do
wait_and_focus
(
'PidginCertificateManagerDialog.png'
,
10
,
'Certificate Manager'
)
@screen
.
type
(
Sikuli
::
Key
.
ESC
)
# @screen.wait_and_click('PidginCertificateManagerClose.png', 10)
@screen
.
waitVanish
(
'PidginCertificateManagerDialog.png'
,
10
)
...
...
anonym
@anonym
mentioned in issue
#10222 (closed)
·
May 14, 2020
mentioned in issue
#10222 (closed)
mentioned in issue #10222
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment