diff options
authoranonym <>2016-08-29 06:52:32 +0200
committeranonym <>2016-08-29 06:52:32 +0200
commit5f2d420156731b3cd764184cd78c30ab4340dfd2 (patch)
parent814cd3f8d179041505c501584b6c21a7f23c85d9 (diff)
Test that notifications are actually shown.
Our normal method of detecting notifications would find them even if the pop-up part doesn't work.
2 files changed, 12 insertions, 0 deletions
diff --git a/features/gnome.feature b/features/gnome.feature
index 21b2672..a0c4124 100644
--- a/features/gnome.feature
+++ b/features/gnome.feature
@@ -6,3 +6,8 @@ Feature: GNOME is well-integrated into Tails
And there is no screenshot in the live user's Pictures directory
When I press the "PRINTSCREEN" key
Then a screenshot is saved to the live user's Pictures directory
+ Scenario: GNOME notifications are shown to the user
+ Given I have started Tails from DVD without network and logged in
+ When the "Dogtail rules!" notification is sent
+ Then the "Dogtail rules!" notification is shown to the user \ No newline at end of file
diff --git a/features/step_definitions/gnome.rb b/features/step_definitions/gnome.rb
new file mode 100644
index 0000000..15497ff
--- /dev/null
+++ b/features/step_definitions/gnome.rb
@@ -0,0 +1,7 @@
+When /^the "(.+)" notification is sent$/ do |title|
+ $vm.execute_successfully("notify-send '#{title}'", user: LIVE_USER)
+Then /^the "(.+)" notification is shown to the user$/ do |title|