diff options
-rwxr-xr-x | scripts/run-ui-tests | 2 | ||||
-rw-r--r-- | tests/shell.py | 6 |
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") |