summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2014-03-07 19:41:31 +0100
committerTails developers <amnesia@boum.org>2014-03-07 20:04:36 +0100
commit0c1812bd18aa0fa34a97bef0154e29d0f743eecd (patch)
tree3dfe42b6c7d3b97fd0ab7b9b2f80db6819cfc8e7
parente08351cf86f4b8ad383576b6d3b50b0e8851a0f6 (diff)
Enter sudo password using keyboard navigation only.
This requires that setting the sudo password is the first thing we do after opening the Greeter's options screen.
-rw-r--r--features/images/TailsGreeterPassword.pngbin1336 -> 0 bytes
-rw-r--r--features/step_definitions/common_steps.rb6
-rw-r--r--wiki/src/contribute/release_process/test/automated_tests.mdwn2
3 files changed, 5 insertions, 3 deletions
diff --git a/features/images/TailsGreeterPassword.png b/features/images/TailsGreeterPassword.png
deleted file mode 100644
index 44c264b..0000000
--- a/features/images/TailsGreeterPassword.png
+++ /dev/null
Binary files differ
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index bfedc37..ac73733 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -188,9 +188,9 @@ Given /^I set sudo password "([^"]*)"$/ do |password|
@sudo_password = password
next if @skip_steps_while_restoring_background
@screen.wait("TailsGreeterAdminPassword.png", 20)
- match = @screen.find('TailsGreeterPassword.png')
- @screen.click(match.getCenter.offset(match.w*3, match.h/2))
- @screen.type(@sudo_password + Sikuli::Key.TAB + @sudo_password)
+ @screen.type(@sudo_password)
+ @screen.type(Sikuli::Key.TAB)
+ @screen.type(@sudo_password)
end
Given /^Tails Greeter has dealt with the sudo password$/ do
diff --git a/wiki/src/contribute/release_process/test/automated_tests.mdwn b/wiki/src/contribute/release_process/test/automated_tests.mdwn
index 60dadd6..c61cc5d 100644
--- a/wiki/src/contribute/release_process/test/automated_tests.mdwn
+++ b/wiki/src/contribute/release_process/test/automated_tests.mdwn
@@ -191,6 +191,8 @@ This step:
This is required for steps enabling Tails Greeter options, like the
next one, or the `I enable Microsoft Windows XP camouflage` step.
+Note that the "I set sudo password ..." step has to be run before the
+other Tails Greeter option steps as it relies on keyboard navigation.
And I set sudo password "asdf"