Commit 8f5e0802 authored by intrigeri's avatar intrigeri
Browse files

Test suite: improve step definition name.

I need to use this step to check for other messages that don't start with "the
destination device". "^I am told that (.*)" would feel too broad given all steps
of our test suite share a single namespace, so I'm making this one as generic as
I can in the Tails Installer context.
parent 690e04cc
......@@ -104,7 +104,7 @@ When /^I start Tails Installer$/ do
$vm.focus_window('Tails Installer')
end
When /^I am told that the destination device (.*)$/ do |status|
When /^I am told by Tails Installer that.*"([^"]+)".*$/ do |status|
try_for(10) do
tails_installer_match_status(status)
end
......
......@@ -10,7 +10,7 @@ Feature: Installing Tails to a USB drive
But a suitable USB device is not found
And no USB drive is selected
When I plug USB drive "too-small-device"
Then I am told that the destination device is too small
Then I am told by Tails Installer that the destination device "is too small"
And no USB drive is selected
When I unplug USB drive "too-small-device"
And I temporarily create a 7200 MiB disk named "big-enough"
......@@ -23,7 +23,7 @@ Feature: Installing Tails to a USB drive
And I create a gpt partition with a vfat filesystem on disk "gptfat"
And I plug USB drive "gptfat"
When I start Tails Installer
Then I am told that the destination device is too small
Then I am told by Tails Installer that the destination device "is too small"
Scenario: Detecting when a target USB drive is inserted or removed
Given I have started Tails from DVD without network and logged in
......
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