summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/browser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/browser.rb')
-rw-r--r--features/step_definitions/browser.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/features/step_definitions/browser.rb b/features/step_definitions/browser.rb
index 849c858..6235b07 100644
--- a/features/step_definitions/browser.rb
+++ b/features/step_definitions/browser.rb
@@ -237,8 +237,10 @@ end
Then /^the Tor Browser shows the "([^"]+)" error$/ do |error|
page = @torbrowser.child("Problem loading page - Tor Browser", roleName: "frame")
headers = page.children(roleName: "heading")
- found = headers.any? { |heading| heading.text == error }
- raise "Could not find the '#{error}' error in the Tor Browser" unless found
+ assert(
+ headers.any? { |heading| heading.text == error },
+ "Could not find the '#{error}' error in the Tor Browser"
+ )
end
Then /^I can listen to an Ogg audio track in Tor Browser$/ do