Permalink
Browse files

Pages: Normalize text in Plone.get_first_heading.

  • Loading branch information...
1 parent 146ecb0 commit 8e7828462d72f4720ab6043a9238a18b223580f8 @jone jone committed Mar 23, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 ftw/testing/pages.py
@@ -99,7 +99,8 @@ def login(self, user=TEST_USER_NAME, password=TEST_USER_PASSWORD):
return self
def get_first_heading(self):
- return browser().find_by_css('.documentFirstHeading').text
+ return self.normalize_whitespace(
+ browser().find_by_css('.documentFirstHeading').text)
def get_body_classes(self):
"""Returns the classes of the body node.

0 comments on commit 8e78284

Please sign in to comment.