~vila/canonical-identity-provider/redirect-loop

« back to all changes in this revision

Viewing changes to identityprovider/tests/acceptance/root/links.py

  • Committer: Tarmac
  • Author(s): Ricardo Kirkner
  • Date: 2011-12-22 11:38:36 UTC
  • mfrom: (242.3.13 sso-sst)
  • Revision ID: tarmac@199959-20111222113836-1egowi5i2avr1s1o
[r=ricardokirkner] Include acceptance (SST) tests as part of the code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# 3) Check the following links on the login page to ensure they are all working:
 
2
# Login support, Find out more, Source code for this service, AGPL, Terms of
 
3
# Service, Privacy Policy, ubuntu logo {ubuntu.com}
 
4
 
 
5
# This tests only the links with link text, not the Ubuntu logo.
 
6
 
 
7
from canonical.isd.tests.sst import config
 
8
from sst.actions import *
 
9
 
 
10
config.set_base_url_from_env(default_to='https://login.staging.ubuntu.com/')
 
11
 
 
12
go_to('/')
 
13
wait_for(assert_title, 'Log in')
 
14
click_link(get_element(text=link_text))
 
15
wait_for(assert_title, title)