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:
@@ -17,7 +17,12 @@ class Test_01_login_screen < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_02_check_login_validation
|
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
|
#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.button(:value,'Login').click
|
||||||
@@ie.wait
|
@@ie.wait
|
||||||
assert(@@ie.contains_text('Value must be specified.'),'Expected not null error on username.')
|
assert(@@ie.contains_text('Value must be specified.'),'Expected not null error on username.')
|
||||||
|
|||||||
Reference in New Issue
Block a user