[gnome-software] actions test: Cope with first-run dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] actions test: Cope with first-run dialog
- Date: Mon, 16 Mar 2015 16:04:57 +0000 (UTC)
commit fb7c802b3c36f9893f8750bd18c7120c391fd32d
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 16 12:03:27 2015 -0400
actions test: Cope with first-run dialog
Just click it away if it is there.
tests/actions.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/actions.py b/tests/actions.py
index 9663b59..f9a2a36 100755
--- a/tests/actions.py
+++ b/tests/actions.py
@@ -31,6 +31,13 @@ try:
proxy.call_sync('Activate', GLib.Variant('(a{sv})', ({},)), 0, -1, None)
doDelay(1)
+ 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"
+
+ doDelay(1)
assert (len(app.children) == 1)
dbus_actions = Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]