[gnome-software] Fix basic UI test



commit eca1507a7b0cd1216c95ae044d5ab0176e09d63c
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 13 18:09:50 2015 -0400

    Fix basic UI test
    
    The code for finding the Install and Remove button was not
    working anymore. Just look for them explicitly as children
    of the details page.

 tests/basic.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/basic.py b/tests/basic.py
index 89d7536..b7b6dca 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -28,14 +28,14 @@ try:
     installed_button = app.child('Installed')
     updates_button = app.child('Updates')
     back_button = app.child('Go back')
-    install_button = app.child(roleName='frame', name='Software', recursive=False).child(roleName='panel', 
name='', recursive=False).child(roleName='push button', name='Install')
-    remove_button = app.child(roleName='frame', name='Software', recursive=False).child(roleName='panel', 
name='', recursive=False).child(roleName='push button', name='Remove')
 
     overview_page = app.child('Overview page')
     installed_page = app.child('Installed page')
     updates_page = app.child('Updates page')
     search_page = app.child('Search page')
     details_page = app.child('Details page')
+    install_button = details_page.child('Install')
+    remove_button = details_page.child('Remove')
 
     search_page_listbox = search_page.child(roleName='list box')
 


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