Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
560b27f2
Commit
560b27f2
authored
Jul 03, 2018
by
intrigeri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test suite: adjust looking for errors for Tor Browser 8 (refs:
#15023
)
parent
8d4e11de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
features/step_definitions/browser.rb
features/step_definitions/browser.rb
+1
-1
No files found.
features/step_definitions/browser.rb
View file @
560b27f2
...
@@ -204,7 +204,7 @@ Then /^Tails homepage loads in the Unsafe Browser$/ do
...
@@ -204,7 +204,7 @@ Then /^Tails homepage loads in the Unsafe Browser$/ do
end
end
Then
/^the Tor Browser shows the "([^"]+)" error$/
do
|
error
|
Then
/^the Tor Browser shows the "([^"]+)" error$/
do
|
error
|
page
=
@torbrowser
.
child
(
"Problem loading page"
,
roleName:
"
document
frame"
)
page
=
@torbrowser
.
child
(
"Problem loading page
- Tor Browser
"
,
roleName:
"frame"
)
headers
=
page
.
children
(
roleName:
"heading"
)
headers
=
page
.
children
(
roleName:
"heading"
)
found
=
headers
.
any?
{
|
heading
|
heading
.
text
==
error
}
found
=
headers
.
any?
{
|
heading
|
heading
.
text
==
error
}
raise
"Could not find the '
#{
error
}
' error in the Tor Browser"
unless
found
raise
"Could not find the '
#{
error
}
' error in the Tor Browser"
unless
found
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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