From 921c39222b17519082550db3d45aba301b4d4ab7 Mon Sep 17 00:00:00 2001 From: PriestJ Date: Fri, 29 Feb 2008 13:14:52 +0000 Subject: [PATCH] fixing errors when refering to hidden objects in integration test git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3780 248e525c-4dfb-0310-94bc-949c084e9493 --- tests/addontests.rb | 2 +- tests/drawingtests.rb | 3 ++- tests/housingtests.rb | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/addontests.rb b/tests/addontests.rb index e24ab37..c447abf 100644 --- a/tests/addontests.rb +++ b/tests/addontests.rb @@ -115,7 +115,7 @@ class Test_06_addon_screen < Test::Unit::TestCase @@ie.link(:text, 'LOGGER').click @@ie.wait assert(@@ie.contains_text('Create/Edit Additional Item '),'The Create/Edit Additional Item screen did not appear') - assert(@@ie.text_field(:id, 'P24_CODE').verify_contains('LOGGER'), 'The additional item code field did not contain value ADDON2') + assert(@@ie.contains_text('LOGGER'), 'The additional item code field did not contain value ADDON2') assert(@@ie.text_field(:id, 'P24_DESCRIPTION').verify_contains('Data Logger'), 'The description is not Add-on for meter M3') assert(@@ie.text_field(:id, 'P24_LEAD_TIME').verify_contains('15'), 'Lead time is not 15') assert(@@ie.button(:id, 'cancel').exists?,'The cancel button was not available') diff --git a/tests/drawingtests.rb b/tests/drawingtests.rb index 73b1300..01f4560 100644 --- a/tests/drawingtests.rb +++ b/tests/drawingtests.rb @@ -116,7 +116,8 @@ class Test_04_drawings_screen < Test::Unit::TestCase # def test_06_update_drawing_code @@ie.link(:text, 'D1').click - assert(@@ie.text_field(:id, 'P53_CODE').verify_contains('D1'),'The drawing code field did not contain value D1') + @@ie.wait + assert(@@ie.contains_text('D1'),'The drawing code field did not contain value D1') assert(@@ie.text_field(:id, 'P53_DESCRIPTION').verify_contains('Drawing for base'),'The drawing description field did not contain value Drawing for housing') assert(@@ie.button(:id, 'cancel').exists?,'The cancel button was not available') assert(@@ie.button(:id, 'delete').exists?,'The delete button was not available') diff --git a/tests/housingtests.rb b/tests/housingtests.rb index bc9572c..db26c8e 100644 --- a/tests/housingtests.rb +++ b/tests/housingtests.rb @@ -71,7 +71,7 @@ class Test_03_housings_screen < Test::Unit::TestCase @@ie.wait assert(@@ie.contains_text('Housings'),'The housing screen did not appear') assert(@@ie.contains_text('1766H'),'The new record with housing code 1766H did not appear') - assert(@@ie.contains_text('LIFT OFF'),'The new record with housing type lift off did not appear') + assert(@@ie.contains_text('Lift Off'),'The new record with housing type lift off did not appear') assert(@@ie.contains_text('Housing for meters'),'The description Housing for meters did not appear') assert(@@ie.contains_text('3800'),'The value 3800 for Dim L did not appear') assert(@@ie.contains_text('1400'),'The value 1400 for Dim W did not appear') @@ -129,7 +129,7 @@ class Test_03_housings_screen < Test::Unit::TestCase @@ie.wait assert(@@ie.contains_text('Housings'),'The housing screen did not appear') assert(@@ie.contains_text('1766H'),'The new record with housing code 1765H did not appear') - assert(@@ie.contains_text('LIFT OFF'),'The new record with housing type lift off did not appear') + assert(@@ie.contains_text('Lift Off'),'The new record with housing type lift off did not appear') assert(@@ie.contains_text('Housing for slamshut valves'),'The updated description Housing for slamshut valves did not appear') assert(@@ie.contains_text('3800'),'The value 3800 for Dimension L did not appear') assert(@@ie.contains_text('1400'),'The value 1400 for Dimension W did not appear')