Commit bf33e162 authored by intrigeri's avatar intrigeri
Browse files

Test suite: make the "the Tor Browser has started" step stricter

I've seen a case when the "I start the Tor Browser" step succeeded, but then the
"I open the address $URL" step, run immediately after that, failed with "cannot
find TorBrowserNewTabButton.png on the screen (FindFailed)" a mere second later.

So let's consider "I start the Tor Browser" to be successful only once
the "new tab" button has appeared, which should help ensure the browser
is ready for whatever tests we'll throw at it afterwards.
parent 43c60c05
......@@ -480,6 +480,8 @@ Given /^the Tor Browser (?:has started|starts)$/ do
@torbrowser = Dogtail::Application.new('Firefox')
@torbrowser.child?(roleName: 'frame', recursive: false)
end
browser_info = xul_application_info('Tor Browser')
@screen.wait(browser_info[:new_tab_button_image], 10)
end
Given /^the Tor Browser loads the (startup page|Tails homepage|Tails GitLab)$/ do |page|
......
Supports Markdown
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