Commit ea3e5256 authored by anonym's avatar anonym
Browse files

Move assertion to after we handle another error.

That error implies that the assertion must fail, so this is the required
order of things.
parent c3145a36
......@@ -79,11 +79,11 @@ class UpgradeNotSupported < StandardError
end
def usb_install_helper(name)
assert(tails_installer_is_device_selected?(name))
text = @installer.child('', roleName: 'text').text
if text['It is impossible to upgrade the device']
raise UpgradeNotSupported
end
assert(tails_installer_is_device_selected?(name))
begin
@installer.button('Install Tails').click
@installer.child('Question', roleName: 'alert').button('Yes').click
......
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