[gnome-boxes] tests: Open properties via right click menu



commit 470ffc86c183a16d8f3e2be5c5179a89d2e2a8b8
Author: Vladimir Benes <benesv email cz>
Date:   Fri Jun 19 03:55:54 2015 +0200

    tests: Open properties via right click menu
    
    With this patch, all steps accessing properties dialog are now doing so
    through right click menu instead of selection bar, as properties button
    was removed from selection bar in commit 534d3f0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751229

 tests/general.feature       |    6 ++----
 tests/livecd.feature        |    3 +--
 tests/steps/snapshot.py     |    9 +++------
 tests/system-broker.feature |    3 +--
 4 files changed, 7 insertions(+), 14 deletions(-)
---
diff --git a/tests/general.feature b/tests/general.feature
index 65b46f0..ca10460 100644
--- a/tests/general.feature
+++ b/tests/general.feature
@@ -56,8 +56,7 @@ Feature: General
   @rename_via_button
   Scenario: Rename via button
     * Initiate new box "Core-5" installation
-    * Select "Core-5" box
-    * Press "Properties"
+    * Launch "Properties" for "Core-5" box
     * Rename "Core-5" to "Kernel-6" via "button"
     * Hit "Esc"
     * Quit Boxes
@@ -67,8 +66,7 @@ Feature: General
   @rename_via_label
   Scenario: Rename via label
     * Initiate new box "Core-5" installation
-    * Select "Core-5" box
-    * Press "Properties"
+    * Launch "Properties" for "Core-5" box
     * Rename "Core-5" to "Kernel-6" via "label"
     * Hit "Esc"
     * Quit Boxes
diff --git a/tests/livecd.feature b/tests/livecd.feature
index d20b387..d5677b3 100644
--- a/tests/livecd.feature
+++ b/tests/livecd.feature
@@ -144,8 +144,7 @@ Feature: LiceCD
   @force_shutdown_local_machine
   Scenario: Force off local liveCD box
     * Create new box "Core-5"
-    * Select "Core-5" box
-    * Press "Properties"
+    * Launch "Properties" for "Core-5" box
     * Press "System"
     * Press "Force Shutdown"
     Then Box "Core-5" "does" exist
diff --git a/tests/steps/snapshot.py b/tests/steps/snapshot.py
index 592e4ec..00e3c0d 100644
--- a/tests/steps/snapshot.py
+++ b/tests/steps/snapshot.py
@@ -42,8 +42,7 @@ def add_snapshot(context, name):
 @step('Create snapshot "{snap_name}" from machine "{vm_name}"')
 def create_snapshot(context, snap_name, vm_name):
     context.execute_steps("""
-        * Select "%s" box
-        * Press "Properties"
+        * Launch "Properties" for "%s" box
         * Press "Snapshots"
         * Add Snapshot named "%s"
         * Hit "Esc"
@@ -52,8 +51,7 @@ def create_snapshot(context, snap_name, vm_name):
 @step('Delete machines "{vm_name}" snapshot "{snap_name}"')
 def delete_snapshot(context, vm_name, snap_name):
     context.execute_steps("""
-        * Select "%s" box
-        * Press "Properties"
+        * Launch "Properties" for "%s" box
         * Press "Snapshots"
         """ % vm_name)
 
@@ -72,8 +70,7 @@ def delete_snapshot(context, vm_name, snap_name):
 @step('Revert machine "{vm_name}" to state "{snap_name}"')
 def revert_snapshot(context, vm_name, snap_name):
     context.execute_steps("""
-        * Select "%s" box
-        * Press "Properties"
+        * Launch "Properties" for "%s" box
         * Press "Snapshots"
         """ % vm_name)
 
diff --git a/tests/system-broker.feature b/tests/system-broker.feature
index 453860f..15ba3c9 100644
--- a/tests/system-broker.feature
+++ b/tests/system-broker.feature
@@ -76,8 +76,7 @@ Feature: System Broker
   Scenario: Force off system broker box
     * Create Core-5.3 box on system broker
     * Connect to system broker
-    * Select "Core-5.3" box
-    * Press "Properties"
+    * Launch "Properties" for "Core-5.3" box
     * Press "System"
     * Press "Force Shutdown"
     Then Box "Core-5.3" "does" exist


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]