Skip to content

Unused @gksu@ step in test suite

While investigating #5330 (closed) I found this step which doesn’t appear to be used anymore.

diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 08f66e2..fad9cd3 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -454,15 +454,6 @@ Then /^all Internet traffic has only flowed through Tor$/ do
   leaks.assert_no_leaks
 end

-Given /^I enter the sudo password in the gksu prompt$/ do
-  next if @skip_steps_while_restoring_background
-  @screen.wait('GksuAuthPrompt.png', 60)
-  sleep 1 # wait for weird fade-in to unblock the "Ok" button
-  @screen.type(@sudo_password)
-  @screen.type(Sikuli::Key.ENTER)
-  @screen.waitVanish('GksuAuthPrompt.png', 10)
-end
-
 Given /^I enter the sudo password in the pkexec prompt$/ do
   next if @skip_steps_while_restoring_background
   step "I enter the \"#{@sudo_password}\" password in the pkexec prompt"

Perhaps it should be removed.

Feature Branch: kytv:test/9877-remove-unused-step

Parent Task: #5330 (closed)

Original created by @kytv on 9877 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information