diff options
author | anonym <anonym@riseup.net> | 2017-02-20 15:51:20 +0100 |
---|---|---|
committer | anonym <anonym@riseup.net> | 2017-02-20 15:51:20 +0100 |
commit | a7fb05c1523d1903a01adbab50560d79f3337a30 (patch) | |
tree | 796109d4183cf341ba3487491ed7a7ba613f089a /features | |
parent | 3bc868968f47c414bdb3e32d09df675fea5766b8 (diff) |
Test suite: Dogtailify step.
Soon I'll use it in the German locale, where the image won't match.
Diffstat (limited to 'features')
-rw-r--r-- | features/images/TorBrowserWindow.png | bin | 1572 -> 0 bytes | |||
-rw-r--r-- | features/step_definitions/common_steps.rb | 7 |
2 files changed, 5 insertions, 2 deletions
diff --git a/features/images/TorBrowserWindow.png b/features/images/TorBrowserWindow.png Binary files differdeleted file mode 100644 index 33c11e3..0000000 --- a/features/images/TorBrowserWindow.png +++ /dev/null diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb index 8d77fee..d48a01b 100644 --- a/features/step_definitions/common_steps.rb +++ b/features/step_definitions/common_steps.rb @@ -423,8 +423,11 @@ Given /^available upgrades have been checked$/ do end Given /^the Tor Browser has started$/ do - tor_browser_picture = "TorBrowserWindow.png" - @screen.wait(tor_browser_picture, 60) + try_for(60) do + Dogtail::Application.new('Firefox') + .child(roleName: 'frame', recursive: false) + .exist? + end end Given /^the Tor Browser (?:has started and )?load(?:ed|s) the (startup page|Tails roadmap)$/ do |page| |