[gnome-software] basic test: Cope with first-run dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] basic test: Cope with first-run dialog
- Date: Mon, 16 Mar 2015 15:47:47 +0000 (UTC)
commit 092666a650096386589768f691d679dfebc5612e
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 16 11:46:43 2015 -0400
basic test: Cope with first-run dialog
Just click it away if it is there.
tests/basic.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/basic.py b/tests/basic.py
index b7b6dca..dcdea55 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -39,6 +39,12 @@ try:
search_page_listbox = search_page.child(roleName='list box')
+ try:
+ shopping_button = app.child(name=u'Let\u2019s Go Shopping', retry=False)
+ shopping_button.click()
+ except tree.SearchError:
+ print "not first-run, moving on"
+
all_button.click()
assert (all_button.checked)
assert (not installed_button.checked)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]