From 6c4a58fa3cc3feac95e525087f78e825d2420ac3 Mon Sep 17 00:00:00 2001 From: PriestJ Date: Thu, 14 Feb 2008 15:37:39 +0000 Subject: [PATCH] altered to work better on the build machine git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3553 248e525c-4dfb-0310-94bc-949c084e9493 --- tests/constants.rb | 4 ++-- tests/housingtests.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/constants.rb b/tests/constants.rb index 11d3c67..9d0c425 100644 --- a/tests/constants.rb +++ b/tests/constants.rb @@ -81,8 +81,8 @@ ADDRESSC=["SubBuilding C", "City C", "NN4 6CC"] #set working directory for uploading files etc. -#backup 2 directories -#Dir.chdir('..') +#backup 1 directory #Dir.chdir('..') +Dir.chdir('..') #we're in windows, so replace the forwards with the backs WORKINGDIR = Dir.getwd.to_s.gsub!('/','\\') \ No newline at end of file diff --git a/tests/housingtests.rb b/tests/housingtests.rb index a43f198..9e54c76 100644 --- a/tests/housingtests.rb +++ b/tests/housingtests.rb @@ -156,6 +156,7 @@ class Test_03_housings_screen < Test::Unit::TestCase assert(@@ie.button(:id, 'cancel').exists?,'The cancel button was not available') assert(@@ie.button(:id, 'delete').exists?,'The delete button was not available') assert(@@ie.button(:id, 'apply_changes').exists?,'The Apply Changes button was not available') + startClicker("OK", 1) @@ie.button(:id, 'delete').click @@ie.wait assert_nil(@@ie.contains_text('3811H'),'The housing code field did contain value 3811H')