summaryrefslogtreecommitdiffstats
path: root/features
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-02-16 16:03:33 +0100
committeranonym <anonym@riseup.net>2017-02-16 16:03:33 +0100
commit15ed65bf57b53a47f21a0bec716a9c1783d42a57 (patch)
treed784f04c2621f8641523d78a6513ca6f80768fea /features
parentda223a1e5f2948c9af7edf32f10ee126bf814b91 (diff)
Test suite: add retry magic for glitchy Enigmail button.
Diffstat (limited to 'features')
-rw-r--r--features/step_definitions/icedove.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/features/step_definitions/icedove.rb b/features/step_definitions/icedove.rb
index 10eb33d..f5b3fb3 100644
--- a/features/step_definitions/icedove.rb
+++ b/features/step_definitions/icedove.rb
@@ -85,7 +85,14 @@ When /^I go into Enigmail's preferences$/ do
end
When /^I enable Enigmail's expert settings$/ do
- @enigmail_prefs.button('Display Expert Settings and Menus').click
+ # Clicking the "Display..." button sometimes fails, presumably
+ # because the GUI hasn't loaded completely (or perhaps the button
+ # gets its action connected *after* the button is displayed?), so we
+ # have to verify that the click actually happened.
+ retry_action(5) do
+ @enigmail_prefs.button('Display Expert Settings and Menus').click
+ @enigmail_prefs.button('Hide Expert Settings and Menus')
+ end
end
Then /^I click Enigmail's (.+) tab$/ do |tab_name|