summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/browser.rb
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2018-04-06 15:44:40 +0200
committeranonym <anonym@riseup.net>2019-05-14 16:51:14 +0200
commit7011d0bd09865a9eb44c49900bb77ee900c8704d (patch)
tree09b8cadf6f2632259940da8ed4e728dd938cb02c /features/step_definitions/browser.rb
parentc944e936bef92129cbb039a62c033236cb0ad4d5 (diff)
Test suite: use assertion.
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