Commit a858f435 authored by intrigeri's avatar intrigeri
Browse files

Test suite: make variables naming more consistent.

parent 37e14889
......@@ -222,15 +222,15 @@ end
Then /^I can watch a WebM video in Tor Browser$/ do
test_url = 'https://tails.boum.org/lib/test_suite/test.webm'
info = xul_application_info('Tor Browser')
open_webm_url = Proc.new do
open_test_url = Proc.new do
step "I open the address \"#{test_url}\" in the Tor Browser"
end
recovery_on_failure = Proc.new do
@screen.type(Sikuli::Key.ESC)
@screen.waitVanish(info[:browser_reload_button_image], 3)
open_webm_url.call
open_test_url.call
end
open_webm_url.call
open_test_url.call
retry_tor(recovery_on_failure) do
@screen.wait("TorBrowserSampleRemoteWebMVideoFrame.png", 30)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment