Commit a408788f authored by Iain Lane's avatar Iain Lane Committed by vhumpa

test_tree: Move test_unicode_char_* to use a different UI element

In gedit 3.35, the "Open" button was re-designed to no longer have the
"Other Documents…" button inside it.

Move to testing the (hamburger) menu button instead, as it has an item
"Find and Replace…" which we can look for instead. This works on
pre-3.35 gedit too.
parent c162895f
Pipeline #128178010 failed with stages
in 0 seconds
......@@ -875,18 +875,18 @@ class TestUnicodeNames(unittest.TestCase):
self.app = dogtail.tree.root.application('gedit')
def test_unicode_char_in_name(self):
self.app.child('Open', roleName='toggle button').click()
self.app.child('Menu', roleName='toggle button').click()
unicode_button = None
unicode_button = self.app.child(name=u'Other Documents…', roleName='push button')
unicode_button = self.app.child(name=u'Find and Replace…', roleName='push button')
assert unicode_button is not None
def test_unicode_char_in_name_click(self):
self.app.child('Open', roleName='toggle button').click()
unicode_button = self.app.child(name=u'Other Documents…', roleName='push button')
self.app.child('Menu', roleName='toggle button').click()
unicode_button = self.app.child(name=u'Find and Replace…', roleName='push button')
unicode_button.click()
dialog = None
try:
dialog = self.app.child(name=u'Open', roleName='file chooser')
dialog = self.app.child(name=u'Find and Replace', roleName='dialog')
except dogtail.tree.SearchError:
self.fail()
assert dialog is not None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment