From ca046d4822e677d2a85f4be057365f95c2bd195b Mon Sep 17 00:00:00 2001 From: PriestJ Date: Thu, 6 Mar 2008 12:14:11 +0000 Subject: [PATCH] fixed broken references to login buttons id git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3863 248e525c-4dfb-0310-94bc-949c084e9493 --- tests/enquirytests.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/enquirytests.rb b/tests/enquirytests.rb index fca5f55..6d12e9d 100644 --- a/tests/enquirytests.rb +++ b/tests/enquirytests.rb @@ -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')