[gnome-software] tests: actions: press Esc instead of Close button (as dogtail can't do this now)



commit 8e99d1fcb4b4dc8393517b44bc9ef44e008492a8
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Wed Feb 26 13:50:26 2014 +0100

    tests: actions: press Esc instead of Close button (as dogtail can't do this now)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725219

 tests/actions.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/actions.py b/tests/actions.py
index c43a8d0..e7d470d 100755
--- a/tests/actions.py
+++ b/tests/actions.py
@@ -15,6 +15,7 @@ settings.set_boolean ("toolkit-accessibility", True)
 from dogtail.tree import *
 from dogtail.utils import *
 from dogtail.procedural import *
+from dogtail.rawinput import keyCombo
 
 try:
     run('gnome-software')
@@ -48,7 +49,7 @@ try:
 
     doDelay (1)
     assert (len(app.children) == 2)
-    app.dialog('About Software').child('Close').click()
+    keyCombo("<Esc>")
     doDelay (1)
     assert (len(app.children) == 1)
 


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