summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFelix Riemann <friemann@gnome.org>2014-04-28 23:22:07 +0200
committerFelix Riemann <friemann@gnome.org>2014-04-28 23:22:07 +0200
commited8e8838cd07fb0bb6d97b76e1e0cf093d4559dd (patch)
tree4355cb788869ac84523b657b268f6a7446f792a5 /tests
parent847fc70b24fdd7c5f276f41f0f3db755918e2221 (diff)
downloadeog-ed8e8838cd07fb0bb6d97b76e1e0cf093d4559dd.tar.gz
Update installed tests to work with latest GtkFileChooser
The location entry is shown differently now and apparently there is also a slightly longer timeout needed until one can press Enter. https://bugzilla.gnome.org/show_bug.cgi?id=727989
Diffstat (limited to 'tests')
-rw-r--r--tests/common_steps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/common_steps.py b/tests/common_steps.py
index adda7b52..3fdffe98 100644
--- a/tests/common_steps.py
+++ b/tests/common_steps.py
@@ -227,12 +227,12 @@ def select_file_in_dialog(context, name):
home_folder.click()
else:
context.app.dialog.childNamed('File System').click()
- location_button = context.app.dialog.child('Type a file name')
- if not pyatspi.STATE_ARMED in location_button.getState().getStates():
+ location_button = context.app.dialog.child('Enter Location')
+ if not pyatspi.STATE_SELECTED in location_button.getState().getStates():
location_button.click()
context.app.dialog.childLabelled('Location:').set_text_contents(name)
- sleep(0.1)
+ sleep(0.2)
context.app.dialog.childLabelled('Location:').grab_focus()
keyCombo('<Enter>')
assert wait_until(lambda x: x.dead, context.app.dialog), "Dialog was not closed"