diff options
author | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-06-10 22:28:21 +0800 |
---|---|---|
committer | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-06-10 22:32:38 +0800 |
commit | 9c7bc3fb7be052783b6b84e3efd01b112ef2018c (patch) | |
tree | c49b22f8550d4a0891430861d64f8a759d6c8756 /tests | |
parent | fd1c0e1dad183e41527a0c9412c7aeeffd3454b5 (diff) | |
download | gsoc2013-evolution-9c7bc3fb7be052783b6b84e3efd01b112ef2018c.tar gsoc2013-evolution-9c7bc3fb7be052783b6b84e3efd01b112ef2018c.tar.gz gsoc2013-evolution-9c7bc3fb7be052783b6b84e3efd01b112ef2018c.tar.bz2 gsoc2013-evolution-9c7bc3fb7be052783b6b84e3efd01b112ef2018c.tar.lz gsoc2013-evolution-9c7bc3fb7be052783b6b84e3efd01b112ef2018c.tar.xz gsoc2013-evolution-9c7bc3fb7be052783b6b84e3efd01b112ef2018c.tar.zst gsoc2013-evolution-9c7bc3fb7be052783b6b84e3efd01b112ef2018c.zip |
tests: correctly calculate combobox/textbox pair
Diffstat (limited to 'tests')
-rw-r--r-- | tests/steps/addressbook_steps.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/steps/addressbook_steps.py b/tests/steps/addressbook_steps.py index 37dda44e68..14bdaff661 100644 --- a/tests/steps/addressbook_steps.py +++ b/tests/steps/addressbook_steps.py @@ -258,7 +258,7 @@ def get_combobox_textbox_object(contact_editor, section): combo_row = combo.position[1] matching_textboxes = [ x for x in textboxes - if (x.position[1] - combo_row < 10) and (x.position[0] > combo.position[0])] + if ((x.position[1] - combo_row) == 0) and (x.position[0] > combo.position[0])] if (matching_textboxes != []): correct_textbox = min(matching_textboxes, key=lambda x: x.position[0]) result.append((combo, correct_textbox)) |