Skip to content
Browse files

[prod]Fix for failing TestSearch.test_clicking_addon_author_link_disp…

…lays_author_profile
  • Loading branch information...
1 parent 0c6702c commit 012bf718f749e1f24f3c5bd4c48320d72d5f3e33 @teodosia teodosia committed Dec 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pages/search_page.py
View
2 pages/search_page.py
@@ -159,7 +159,7 @@ def __init__(self, testsetup, lookup):
if type(lookup) is int:
self._root_locator = (self._base_locator[0], "%s[%i]" % (self._base_locator[1], lookup))
elif type(lookup) is unicode:
- self._root_locator = (self._base_locator[0], "%s[descendant::h3/a[text()='%s']]" % (self._base_locator[1], lookup))
+ self._root_locator = (self._base_locator[0], "%s[descendant::h3/a[normalize-space(text())='%s']]" % (self._base_locator[1], lookup))
_name_locator = (By.CSS_SELECTOR, "h3 > a")
_author_link_locator = (By.CSS_SELECTOR, "ul.search_meta li:nth-child(1) > a")

0 comments on commit 012bf71

Please sign in to comment.
Something went wrong with that request. Please try again.