fixed broken references to login buttons id

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3863 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
PriestJ
2008-03-06 12:14:11 +00:00
parent 4244055c3c
commit ca046d4822

View File

@@ -609,7 +609,7 @@ class Test_02_enquiry < Test::Unit::TestCase
#check we've got the login page
assert(@@ie.text_field(:id,'P101_USERNAME').exists?,'Could not find P101_USERNAME field '+geterrormess(@@ie))
assert(@@ie.text_field(:id,'P101_PASSWORD').exists?,'Could not find P101_PASSWORD field '+geterrormess(@@ie))
assert(@@ie.button(:id, 'login').exists?,'Could not find a Login button '+geterrormess(@@ie))
assert(@@ie.button(:id, 'P101_LOGIN').exists?,'Could not find a Login button '+geterrormess(@@ie))
login(AGENT, AGENT_PWD)
menu('Enquiries')
menu('Create Enquiry')
@@ -695,7 +695,7 @@ class Test_02_enquiry < Test::Unit::TestCase
#check we've got the login page
assert(@@ie.text_field(:id,'P101_USERNAME').exists?,'Could not find P101_USERNAME field '+geterrormess(@@ie))
assert(@@ie.text_field(:id,'P101_PASSWORD').exists?,'Could not find P101_PASSWORD field '+geterrormess(@@ie))
assert(@@ie.button(:id, 'login').exists?,'Could not find a Login button')
assert(@@ie.button(:id, 'P101_LOGIN').exists?,'Could not find a Login button')
login(CS, CS_PWD)
menu('Enquiries')
assert_nil(@@ie.contains_text('Create Enquiry'),'Create Enquiry menu option found when should have been hidden')
@@ -711,7 +711,7 @@ class Test_02_enquiry < Test::Unit::TestCase
#check we've got the login page to enter data into
assert(@@ie.text_field(:id,'P101_USERNAME').exists?,'Could not find P101_USERNAME field '+geterrormess(@@ie))
assert(@@ie.text_field(:id,'P101_PASSWORD').exists?,'Could not find P101_PASSWORD field '+geterrormess(@@ie))
assert(@@ie.button(:id, 'login').exists?,'Could not find a Login button')
assert(@@ie.button(:id, 'P101_LOGIN').exists?,'Could not find a Login button')
login(SA, SA_PWD)
menu('Enquiries')
assert_nil(@@ie.contains_text('Create Enquiry'),'Create Enquiry menu option found when should have been hidden')
@@ -727,7 +727,7 @@ class Test_02_enquiry < Test::Unit::TestCase
#check we've got the login page
assert(@@ie.text_field(:id,'P101_USERNAME').exists?,'Could not find P101_USERNAME field')
assert(@@ie.text_field(:id,'P101_PASSWORD').exists?,'Could not find P101_PASSWORD field')
assert(@@ie.button(:id, 'login').exists?,'Could not find a Login button')
assert(@@ie.button(:id, 'P101_LOGIN').exists?,'Could not find a Login button')
login(AGENT, AGENT_PWD)
menu('Enquiries')
menu('Create Enquiry')