altered tesst after updaing watir on loordv01, watir is now more strict when it comes to finding tags, you can't say,"find a text_field" and it will find the radio button version for you.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@6165 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
PriestJ
2008-08-07 14:46:02 +00:00
parent 793a9b49a1
commit 2bc6594e0d
5 changed files with 31 additions and 30 deletions

View File

@@ -3,7 +3,7 @@
#---
class Test_05_base_screen < Test::Unit::TestCase
#
#Test we can logon to the system using the webmip administrator user<65>s login credentials and check that
#Test we can logon to the system using the webmip administrator user<65>s login credentials and check that
#all the columns required for the report appears with the button to create a new base record
#
def test_01_bases_screen_appears
@@ -131,7 +131,7 @@ class Test_05_base_screen < Test::Unit::TestCase
@@ie.link(:text, '1766BH1').click
@@ie.wait
assert(@@ie.contains_text('Create/Edit Base'),'The Create/Edit Base screen did not appear')
assert(@@ie.text_field(:id, 'P51_CODE').verify_contains('1766BH1'), 'The base code field did not contain value 1766BH1')
assert(@@ie.contains_text('1766BH1'), 'The base code field did not contain value 1766BH1')
assert(@@ie.text_field(:id, 'P51_DESCRIPTION').verify_contains('Base for meters'), 'The description is not base for meters')
assert(@@ie.text_field(:id, 'P51_DEPTH').verify_contains('3800'), 'Depth is not 3800')
assert(@@ie.text_field(:id, 'P51_DIM_A').verify_contains('3800'), 'DIM A is not 3800')