Added test to check T&Cs must be accepted on logon.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3980 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
mullenm
2008-03-13 09:41:04 +00:00
parent 97fd8cb897
commit 98e52bc5aa

View File

@@ -17,7 +17,12 @@ class Test_01_login_screen < Test::Unit::TestCase
end
def test_02_check_login_validation
#Test that T&Cs must be accepted
@@ie.button(:value,'Login').click
@@ie.wait
assert(@@ie.contains_text('Terms and Conditions must be accepted before entering this site'),'T&Cs must be accepted error not displaying.')
#Test that a username must be given
@@ie.radio( :id,'P101_TC_ACCEPTED_0').set #'I accept the Terms and Conditions of using this site'
@@ie.button(:value,'Login').click
@@ie.wait
assert(@@ie.contains_text('Value must be specified.'),'Expected not null error on username.')