~ubuntu-branches/ubuntu/wily/gnome-software/wily-proposed

« back to all changes in this revision

Viewing changes to tests/basic.py

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2015-07-22 00:03:04 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20150722000304-ctnkwytku720qft7
Tags: 3.16.4-1
* New upstream release.
* Update Build-Depends as per configure.ac:
  - Add appstream-util.
  - Add libpolkit-gobject-1-dev.
  - Bump libappstream-glib-dev to (>= 0.3.4).
  - Bump libgtk-3-dev to (>= 3.16).
* Drop hard-coded dependency on libappstream-glib7 now that the library
  provides a symbols file.
* Use dh_install's exclude (-X) functionality to not install the .a and .la
  files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    installed_button = app.child('Installed')
29
29
    updates_button = app.child('Updates')
30
30
    back_button = app.child('Go back')
31
 
    install_button = app.child(roleName='frame', name='Software', recursive=False).child(roleName='panel', name='', recursive=False).child(roleName='push button', name='Install')
32
 
    remove_button = app.child(roleName='frame', name='Software', recursive=False).child(roleName='panel', name='', recursive=False).child(roleName='push button', name='Remove')
33
31
 
34
32
    overview_page = app.child('Overview page')
35
33
    installed_page = app.child('Installed page')
36
34
    updates_page = app.child('Updates page')
37
35
    search_page = app.child('Search page')
38
36
    details_page = app.child('Details page')
 
37
    install_button = details_page.child('Install')
 
38
    remove_button = details_page.child('Remove')
39
39
 
40
40
    search_page_listbox = search_page.child(roleName='list box')
41
41
 
 
42
    try:
 
43
        shopping_button = app.child(name=u'Let\u2019s Go Shopping', retry=False)
 
44
        shopping_button.click()
 
45
    except tree.SearchError:
 
46
        print "not first-run, moving on"
 
47
 
42
48
    all_button.click()
43
49
    assert (all_button.checked)
44
50
    assert (not installed_button.checked)