Commit 271327fb authored by anonym's avatar anonym
Browse files

Adapt test for new Tails Installer.

The USBCreateLiveUSB.png image cannot be relied upon for waiting on
the main installer window, since it can be greyed out. Also, the error
message when a device is not upgradable appears without even clicking
the install button.
parent 951b37b1
features/images/USBCannotUpgrade.png

2.09 KB | W: | H:

features/images/USBCannotUpgrade.png

2.25 KB | W: | H:

features/images/USBCannotUpgrade.png
features/images/USBCannotUpgrade.png
features/images/USBCannotUpgrade.png
features/images/USBCannotUpgrade.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -69,7 +69,7 @@ class UpgradeNotSupported < StandardError
end
def usb_install_helper(name)
@screen.wait('USBCreateLiveUSB.png', 10)
@screen.wait('USBTailsLogo.png', 10)
# Here we'd like to select USB drive using #{name}, but Sikuli's
# OCR seems to be too unreliable.
......@@ -84,10 +84,10 @@ def usb_install_helper(name)
# # Unfortunately this results in almost garbage, like "|]dev/sdm"
# # when it should be /dev/sda1
@screen.wait_and_click('USBCreateLiveUSB.png', 10)
if @screen.exists("USBCannotUpgrade.png")
raise UpgradeNotSupported
end
@screen.wait_and_click('USBCreateLiveUSB.png', 10)
@screen.wait('USBCreateLiveUSBConfirmWindow.png', 10)
@screen.wait_and_click('USBCreateLiveUSBConfirmYes.png', 10)
@screen.wait('USBInstallationComplete.png', 60*60)
......
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