[gnome-boxes/wip/automated-tests: 19/19] tmp



commit a95cc1f387ee9fbff2ef391675c3fa37d3170805
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sun Jan 25 14:57:49 2015 +0000

    tmp
    
    Port tests to 3.15 branch

 tests/general.feature   |    4 ++--
 tests/livecd.feature    |    2 +-
 tests/steps/general.py  |    4 ++--
 tests/steps/snapshot.py |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/general.feature b/tests/general.feature
index b56c60b..dee2f09 100644
--- a/tests/general.feature
+++ b/tests/general.feature
@@ -59,7 +59,7 @@ Feature: General
     * Select "Core-5" box
     * Press "Properties"
     * Rename "Core-5" to "Kernel-6" via "button"
-    * Press "Back"
+    * Hit "Esc"
     * Quit Boxes
     * Start Boxes
     Then Box "Kernel-6" "does" exist
@@ -70,7 +70,7 @@ Feature: General
     * Select "Core-5" box
     * Press "Properties"
     * Rename "Core-5" to "Kernel-6" via "label"
-    * Press "Back"
+    * Hit "Esc"
     * Quit Boxes
     * Start Boxes
     Then Box "Kernel-6" "does" exist
diff --git a/tests/livecd.feature b/tests/livecd.feature
index 0f87b25..036277e 100644
--- a/tests/livecd.feature
+++ b/tests/livecd.feature
@@ -147,7 +147,7 @@ Feature: LiceCD
     * Press "Properties"
     * Press "Force Shutdown"
     * Press "Cancel" in alert
-    * Press "Back"
+    * Hit "Esc"
     Then Box "Core-5" "does" exist
     Then Ping "Core-5"
 
diff --git a/tests/steps/general.py b/tests/steps/general.py
index 30c9401..0b3f51a 100644
--- a/tests/steps/general.py
+++ b/tests/steps/general.py
@@ -39,11 +39,10 @@ def customize_vm(context):
     context.app.child('Customize…').click()
     sleep(0.5)
     pressKey('Tab')
-    pressKey('Tab')
     pressKey('Page_Up')
     pressKey('Page_Up')
 
-    context.app.children[0].children[0].children[3].child('Back').click()
+    context.app.findChildren(lambda x: x.name == 'Back' and x.showing)[0].click()
     sleep(0.5)
 
 @step('Go into "{vm}" box')
@@ -133,6 +132,7 @@ def save_ip_for_vm(context, vm):
 
 @step('Select "{vm}" box')
 def select_vm(context, vm):
+    context.app.child('Select Items').click()
     pane = context.app.child(roleName='layered pane')
     for child in pane.children:
         if child.text == vm:
diff --git a/tests/steps/snapshot.py b/tests/steps/snapshot.py
index 0a6cc9b..bb2ec2f 100644
--- a/tests/steps/snapshot.py
+++ b/tests/steps/snapshot.py
@@ -46,7 +46,7 @@ def create_snapshot(context, snap_name, vm_name):
         * Press "Properties"
         * Press "Snapshots"
         * Add Snapshot named "%s"
-        * Press "Back"
+        * Hit "Esc"
         """ %(vm_name, snap_name))
 
 @step('Delete machines "{vm_name}" snapshot "{snap_name}"')


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