summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2018-11-23 12:22:44 +0100
committerbertagaz <bertagaz@ptitcanardnoir.org>2018-11-23 19:55:21 +0100
commit87dc0009be45f3e8b1c351827c4e6df1455f5613 (patch)
tree44bacb34d7319294ea9871306ad518b6e222acf6
parenta4eddd2f210c9d104def3de683cee0af2d715e59 (diff)
Test suite: don't use instance variables in ASP tests when not necessary.
Refs: #14596
-rw-r--r--features/step_definitions/additional_software_packages.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/features/step_definitions/additional_software_packages.rb b/features/step_definitions/additional_software_packages.rb
index 1feb38a..ff9303b 100644
--- a/features/step_definitions/additional_software_packages.rb
+++ b/features/step_definitions/additional_software_packages.rb
@@ -88,10 +88,10 @@ When /^I (refuse|accept) (adding|removing) "([^"]*)" (?:to|from) Additional Soft
end
Given /^I remove "([^"]*)" from the list of Additional Software using Additional Software GUI$/ do |package|
- @asp_gui = Dogtail::Application.new('tails-additional-software-config')
- installed_package = @asp_gui.child(package, roleName: 'label')
+ asp_gui = Dogtail::Application.new('tails-additional-software-config')
+ installed_package = asp_gui.child(package, roleName: 'label')
installed_package.parent.parent.child('Close', roleName: 'push button').click
- @asp_gui.child('Question', roleName: 'alert').button('Remove').click
+ asp_gui.child('Question', roleName: 'alert').button('Remove').click
deal_with_polkit_prompt(@sudo_password)
end
@@ -133,7 +133,7 @@ end
When /^I can open the Additional Software configuration window from the notification$/ do
gnome_shell = Dogtail::Application.new('gnome-shell')
gnome_shell.child('Configure', roleName: 'push button').click
- @asp = Dogtail::Application.new('tails-additional-software-config')
+ asp = Dogtail::Application.new('tails-additional-software-config')
end
When /^I disable the Additional Software installation service$/ do
@@ -148,5 +148,5 @@ end
Then /^I can open the Additional Software log file from the notification$/ do
gnome_shell = Dogtail::Application.new('gnome-shell')
gnome_shell.child('Show Log', roleName: 'push button').click
- try_for(60) { @gedit = Dogtail::Application.new('gedit').child("log [Read-Only] (#{ASP_STATE_DIR}) - gedit", roleName: 'frame') }
+ try_for(60) { gedit = Dogtail::Application.new('gedit').child("log [Read-Only] (#{ASP_STATE_DIR}) - gedit", roleName: 'frame') }
end