diff --git a/tests/addontests.rb b/tests/addontests.rb index c447abf..53456f7 100644 --- a/tests/addontests.rb +++ b/tests/addontests.rb @@ -121,9 +121,7 @@ class Test_06_addon_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') - @@ie.text_field(:id, 'P24_CODE').set("ADDON3") - @@ie.button(:id, 'apply_changes').click - @@ie.wait + assert(@@ie.hidden(:id, 'P24_CODE').exits?,'The CODE field was not hidden') assert(@@ie.contains_text('Create/Edit Additional Item'),'The additional item screen did not appear') assert(@@ie.contains_text('ADDON3'),'The record with additional item code ADDON3 did not appear') end diff --git a/tests/basestests.rb b/tests/basestests.rb index b42609a..a567b5f 100644 --- a/tests/basestests.rb +++ b/tests/basestests.rb @@ -295,6 +295,7 @@ class Test_05_base_screen < Test::Unit::TestCase assert_nil(@@ie.contains_text('2400'),'The value 2400 for Dim I did appear') assert_nil(@@ie.contains_text('WI'),'The new record with drawing code WI did appear') assert(@@ie.contains_text('Error'),'An error was not generated') + sleep 3 @@ie.link(:text, 'OK').click @@ie.wait end diff --git a/tests/drawingtests.rb b/tests/drawingtests.rb index 01f4560..4c99628 100644 --- a/tests/drawingtests.rb +++ b/tests/drawingtests.rb @@ -122,13 +122,7 @@ class Test_04_drawings_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') - @@ie.text_field(:id, 'P53_CODE').set("D2") - @@ie.button(:id, 'apply_changes').click - @@ie.wait - assert(@@ie.contains_text('ORA-20001'),'We did not get that nasty ORA-20001 error we were expecting') - assert(@@ie.contains_text('DRAWINGS'),'Did not reference the DRAWINGS table in the error message') - @@ie.link(:text, 'OK').click - @@ie.wait + assert(@@ie.hidden(:id, 'P53_CODE').exists?,'The CODE field is not read only when it should be') @@ie.button(:id, 'cancel').click @@ie.wait end diff --git a/tests/housingtests.rb b/tests/housingtests.rb index db26c8e..db6f14b 100644 --- a/tests/housingtests.rb +++ b/tests/housingtests.rb @@ -94,7 +94,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('3811H'),'The new record with drawing code 3811H did not appear') - assert(@@ie.contains_text('WALK THRU'),'The new record with housing type walk through did not appear') + assert(@@ie.contains_text('Walk Thru'),'The new record with housing type walk through did not appear') assert(@@ie.contains_text('Housing for regulators'),'The description Housing for regulators did not appear') assert(@@ie.contains_text('3600'),'The value 3600 for Dimension L did not appear') assert(@@ie.contains_text('1700'),'The value 1700 for Dimension W did not appear') diff --git a/tests/start.rb b/tests/start.rb index 6e4e091..aa623ae 100644 --- a/tests/start.rb +++ b/tests/start.rb @@ -36,10 +36,10 @@ include Watir # #Get our individual integration tests # -require 'exportdatatests' -require 'enquirytests' -require 'housingtests' +#require 'exportdatatests' +#require 'enquirytests' +#require 'housingtests' require 'basestests' -require 'drawingtests.rb' +#require 'drawingtests.rb' #@@ie.wait #@@ie.close \ No newline at end of file