Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-12 13:12:15 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-12 13:12:15 (GMT)
commitab56e1fe5cc1fc40d7fc3db3ef5ebad083b0cff9 (patch)
treefa489a54c6439d282a6dd4a7619f6d572d9cc45f
parent225625bcf34c80b3c6b7c80ca8f1360451a417b9 (diff)
Close the gcr prompter
-rwxr-xr-xscripts/run-ui-tests2
-rw-r--r--tests/shell.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/scripts/run-ui-tests b/scripts/run-ui-tests
index 11eff62..b5ce23f 100755
--- a/scripts/run-ui-tests
+++ b/scripts/run-ui-tests
@@ -22,7 +22,7 @@ export SUGAR_UI_TESTS=yes
xinit $scriptsdir/xinitrc -- $xserver &
xinitpid=$!
-sleep 20
+sleep 5
DISPLAY=$display python $testsdir/shell.py
result=$?
diff --git a/tests/shell.py b/tests/shell.py
index 8beef1c..c02b5f5 100644
--- a/tests/shell.py
+++ b/tests/shell.py
@@ -60,6 +60,12 @@ def go_to_list_view():
done_button = shell.find_child(name="Done", role_name="push button")
done_button.do_action("click")
+ gcr_prompter = root.find_child(name="gcr-prompter", role_name="application")
+ if gcr_prompter:
+ cancel_button = gcr_prompter.find_child(name="Cancel",
+ role_name="push button")
+ cancel_button.do_action("click")
+
radio_button = shell.find_child(name="List view", role_name="radio button")
radio_button.do_action("click")