diff --git a/tests/login_tests.rb b/tests/login_tests.rb index 58668a6..986cc63 100644 --- a/tests/login_tests.rb +++ b/tests/login_tests.rb @@ -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.')