Open Bug 1176422 Opened 5 years ago Updated 4 years ago

AutocompleteResults.get_matching_text can return non-matching text for results not of type bookmark


(Testing :: Firefox UI Tests, defect)

Not set


(Not tracked)


(Reporter: galgeek, Unassigned)


AutocompleteResults.get_matching_text method returns unmatched text when checking autocomplete results of a result type other than 'bookmark'.
Barbara, can you please give us an example here? It would make it easier to understand the problem. Right now I have difficulties with it. Thanks.
When checks, in test_matching_text, all autocomplete results, not just those of type "bookmark", it errors with this traceback:

 0:04.47 TEST_START: MainThread TestAutoCompleteResults.test_matching_text
 0:05.34 TEST_END: MainThread FAIL, expected PASS
Traceback (most recent call last):
  File "/Users/bara/.virtualenvs/ffuit/lib/python2.7/site-packages/marionette_client-0.12-py2.7.egg/marionette/", line 296, in run
  File "/Users/bara/Dev/ffuit/firefox_ui_harness/", line 23, in wrapper
    return target(self, *args, **kwargs)
  File "/Users/bara/Dev/ffuit/firefox_puppeteer/tests/", line 143, in test_matching_text
    self.assertIn(match_fragment.lower(), input_text)
AssertionError: u'- search with yahoo' not found in 'moz'

I'm not sure that I understand what's happening in the get_matching_text method, or I'd try to suggest a fix.
Ah, I see. Then we need a fix similar to bug 1174661.
Product: Mozilla QA → Testing
You need to log in before you can comment on or make changes to this bug.