[pitivi] dogtail tests: Don't rely on a pushbutton click to show a path entry in "Open"
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] dogtail tests: Don't rely on a pushbutton click to show a path entry in "Open"
- Date: Tue, 13 Nov 2012 04:15:54 +0000 (UTC)
commit 1ea794b1e0d355f731636147b699c6b991924467
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Mon Nov 12 22:55:53 2012 -0500
dogtail tests: Don't rely on a pushbutton click to show a path entry in "Open"
Depending on the last state, blindly clicking that button could do the opposite.
tests/dogtail_scripts/helper_functions.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/dogtail_scripts/helper_functions.py b/tests/dogtail_scripts/helper_functions.py
index 1a2572b..c3647f4 100644
--- a/tests/dogtail_scripts/helper_functions.py
+++ b/tests/dogtail_scripts/helper_functions.py
@@ -35,9 +35,10 @@ class HelpFunc(BaseDogTail):
proj_menu.click()
proj_menu.menuItem("Open...").click()
load = self.pitivi.child(roleName='file chooser', recursive=False)
- load.child(name="Type a file name", roleName="toggle button").click()
+ # Same performance hack as in the import_media method
+ dogtail.rawinput.pressKey("/")
load.child(roleName='text').text = url
- load.button('Open').click()
+ dogtail.rawinput.pressKey("Enter") # Don't search for the Open button
# If an unsaved changes confirmation dialog shows up, deal with it
if expect_unsaved_changes:
# Simply try searching for the existence of the dialog's widgets
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]