[gnome-software] tests: open Software Sources dialog



commit 8737ddac79392aa6541dd376da1fe998b2d011c2
Author: Martin Simon <martiin siimon gmail com>
Date:   Wed Mar 12 12:03:49 2014 +0100

    tests: open Software Sources dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725219

 tests/basic.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/basic.py b/tests/basic.py
index f8a7fc0..ab09d90 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -95,5 +95,12 @@ try:
     assert (not installed_page.getState().contains(pyatspi.STATE_SHOWING))
     assert (not updates_page.getState().contains(pyatspi.STATE_SHOWING))
     assert (not search_page.getState().contains(pyatspi.STATE_SHOWING))
+
+    super_menu = root.application('gnome-shell').child(roleName='menu', name='Software')
+    super_menu.click()
+    root.application('gnome-shell').child(roleName='label', name='Software Sources').click()
+    assert (len(app.children) == 2)
+    sources_dialog = app.children[-1]
+    assert (sources_dialog.child(roleName='label', name='Software Sources'))
 finally:
     os.system("killall gnome-software")


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