Commit c923cf52 authored by anonym's avatar anonym
Browse files

Improve function name.

parent 7f2478f0
......@@ -37,7 +37,7 @@ def deactivate_filesystem_shares
#end
end
def notification_helper(notification_image, time_to_wait)
def notification_popup_wait(notification_image, time_to_wait)
# notifiction-daemon may abort during start-up, causing the tests that look for
# desktop notifications to fail (ticket #8686)
begin
......@@ -328,7 +328,7 @@ end
When /^I see the 'Tor is ready' notification$/ do
next if @skip_steps_while_restoring_background
notification_helper('GnomeTorIsReady.png', 300)
notification_popup_wait('GnomeTorIsReady.png', 300)
@screen.waitVanish("GnomeTorIsReady.png", 15)
end
......
......@@ -68,12 +68,12 @@ end
When /^see the "Network card disabled" notification$/ do
next if @skip_steps_while_restoring_background
notification_helper("MACSpoofNetworkCardDisabled.png", 60)
notification_popup_wait("MACSpoofNetworkCardDisabled.png", 60)
end
When /^see the "All networking disabled" notification$/ do
next if @skip_steps_while_restoring_background
notification_helper("MACSpoofNetworkingDisabled.png", 60)
notification_popup_wait("MACSpoofNetworkingDisabled.png", 60)
end
Then /^(\d+|no) network device(?:s)? (?:is|are) present$/ do |expected_nr_nics|
......
......@@ -51,7 +51,7 @@ end
Then /^I see the Unsafe Browser start notification and wait for it to close$/ do
next if @skip_steps_while_restoring_background
notification_helper('UnsafeBrowserStartNotification.png', 30)
notification_popup_wait('UnsafeBrowserStartNotification.png', 30)
@screen.waitVanish("UnsafeBrowserStartNotification.png", 10)
end
......@@ -150,7 +150,7 @@ end
Then /^I see the Unsafe Browser stop notification$/ do
next if @skip_steps_while_restoring_background
notification_helper('UnsafeBrowserStopNotification.png', 20)
notification_popup_wait('UnsafeBrowserStopNotification.png', 20)
@screen.waitVanish('UnsafeBrowserStopNotification.png', 10)
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