From 98e52bc5aa03ae6a20ec2f113034854f9094b028 Mon Sep 17 00:00:00 2001 From: mullenm Date: Thu, 13 Mar 2008 09:41:04 +0000 Subject: [PATCH] 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 --- tests/login_tests.rb | 5 +++++ 1 file changed, 5 insertions(+) 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.')