~vila/ubuntuone-testing/trunk

« back to all changes in this revision

Viewing changes to ubuntuone/web/tests/sst/shared/actions/privacy_policy.py

  • Committer: Vincent Ladeuil
  • Date: 2012-11-08 08:22:03 UTC
  • Revision ID: vila+qa@canonical.com-20121108082203-ielk3amvnq4srd0b
Fix some failures after running against edge (6401).

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    assert_page_url()
37
37
    assert_page_title()
38
38
    assert_page_heading1()
39
 
    
 
39
 
40
40
 
41
41
def assert_page_url():
42
42
    base_url = get_base_url()
43
43
    assert_url(base_url + 'privacy/')
44
44
 
 
45
 
45
46
def assert_page_title():
46
47
    assert_title(u'Ubuntu One : Privacy Policy')
47
48
 
50
51
    # XXX: There are many h1 elements on the page.
51
52
    # See https://bugs.launchpad.net/ubuntuone-servers/+bug/1037584
52
53
    heading1_element = get_element_by_css('header>h1')
53
 
    assert_text(heading1_element, 'Privacy Policy')
 
54
    assert_text(heading1_element, 'Canonical Privacy Policy')