Commit d869a710 authored by anonym's avatar anonym
Browse files

Improve the Gherkin somewhat.

The retry-logic we add makes some steps awkward, especially when they
really are about verifying the results of some previous steps. Any way,
let's make the best out of it.
parent 514b530a
......@@ -733,7 +733,8 @@ When /^I agree to install the incremental upgrade$/ do
@screen.click('TailsUpgraderUpgradeNowButton.png')
end
Then /^the incremental upgrade to version "(.*?)" is reportedly installed$/ do |version|
Then /^I can successfully install the incremental upgrade to version (.+)$/ do |version|
step 'I agree to install the incremental upgrade'
recovery_proc = Proc.new do
recover_from_upgrader_failure
step "I am proposed to install an incremental upgrade to version #{version}"
......
......@@ -168,8 +168,7 @@ Feature: Upgrading an old Tails USB installation
And Tor is ready
And all notifications have disappeared
Then I am proposed to install an incremental upgrade to version 1.1~test
When I agree to install the incremental upgrade
Then the incremental upgrade to version "1.1~test" is reportedly installed
And I can successfully install the incremental upgrade to version 1.1~test
Given I shutdown Tails and wait for the computer to power off
When I start Tails from USB drive "__internal" with network unplugged and I login with persistence enabled
Then Tails is running version 1.1~test
......
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