added an extra test to addons, removed rubbish assertion
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3874 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -20,16 +20,16 @@ class Test_06_addon_screen < Test::Unit::TestCase
|
|||||||
#Check that the Create/Edit Additional Item form can be accessed using the Create button on the report,
|
#Check that the Create/Edit Additional Item form can be accessed using the Create button on the report,
|
||||||
#all the required data entry fields appears on the screen along with create and cancel buttons
|
#all the required data entry fields appears on the screen along with create and cancel buttons
|
||||||
#
|
#
|
||||||
#~ def test_02_create_addon_screen_appears
|
def test_02_create_addon_screen_appears
|
||||||
#~ @@ie.button(:id, 'create').click
|
@@ie.button(:id, 'create').click
|
||||||
#~ @@ie.wait
|
@@ie.wait
|
||||||
#~ assert(@@ie.contains_text('Create/Edit Additional Item'),'The create/edit additional item screen did not appear')
|
assert(@@ie.contains_text('Create/Edit Additional Item'),'The create/edit additional item screen did not appear')
|
||||||
#~ assert(@@ie.text_field(:id, 'P24_CODE').exists?,'The code field is not available')
|
assert(@@ie.text_field(:id, 'P24_CODE').exists?,'The code field is not available')
|
||||||
#~ assert(@@ie.text_field(:id, 'P24_DESCRIPTION').exists?,'The description field is not available')
|
assert(@@ie.text_field(:id, 'P24_DESCRIPTION').exists?,'The description field is not available')
|
||||||
#~ assert(@@ie.text_field(:id, 'P24_LEAD TIME').exists?,'The lead time field is not available ')
|
assert(@@ie.text_field(:id, 'P24_LEAD_TIME').exists?,'The lead time field is not available')
|
||||||
#~ assert(@@ie.button(:id, 'create').exists?,'The create button was not available')
|
assert(@@ie.button(:id, 'create').exists?,'The create button was not available')
|
||||||
#~ assert(@@ie.button(:id, 'cancel').exists?,'The cancel button was not available')
|
assert(@@ie.button(:id, 'cancel').exists?,'The cancel button was not available')
|
||||||
#~ end
|
end
|
||||||
#~ def test_03_correct_lists_of_values_displayed
|
#~ def test_03_correct_lists_of_values_displayed
|
||||||
#~ listofhousingtypes= W%[LIFT OFF
|
#~ listofhousingtypes= W%[LIFT OFF
|
||||||
#~ WALK IN
|
#~ WALK IN
|
||||||
@@ -44,28 +44,28 @@ class Test_06_addon_screen < Test::Unit::TestCase
|
|||||||
#Check that the Create/Edit Additional Item form allows data to be inserted to create a new add-on
|
#Check that the Create/Edit Additional Item form allows data to be inserted to create a new add-on
|
||||||
#Check that the new add-on record appears in the report
|
#Check that the new add-on record appears in the report
|
||||||
#
|
#
|
||||||
#~ def test_03_create_addon
|
def test_03_create_addon
|
||||||
#~ @@ie.text_field(:id, 'P24_CODE').set('ADDON1')
|
@@ie.text_field(:id, 'P24_CODE').set('ADDON1')
|
||||||
#~ @@ie.text_field(:id, 'P24_DESCRIPTION').set('Add-on for meter M1')
|
@@ie.text_field(:id, 'P24_DESCRIPTION').set('Add-on for meter M1')
|
||||||
#~ @@ie.text_field(:id, 'P24_LEAD_TIME').set('20')
|
@@ie.text_field(:id, 'P24_LEAD_TIME').set('20')
|
||||||
#~ @@ie.button(:id, 'create').click
|
@@ie.button(:id, 'create').click
|
||||||
#~ @@ie.wait
|
@@ie.wait
|
||||||
#~ assert(@@ie.contains_text('Additional Items'),'The additional item screen did not appear')
|
assert(@@ie.contains_text('Additional Items'),'The additional item screen did not appear')
|
||||||
#~ assert(@@ie.contains_text('ADDON1'),'The new record with additional item code 1765BH1 did not appear')
|
assert(@@ie.contains_text('ADDON1'),'The new record with additional item code 1765BH1 did not appear')
|
||||||
#~ assert(@@ie.contains_text('Add-on for meter M1'),'The description for additional item did not appear')
|
assert(@@ie.contains_text('Add-on for meter M1'),'The description for additional item did not appear')
|
||||||
#~ assert(@@ie.contains_text('20'),'The value 20 for lead time did not appear')
|
assert(@@ie.contains_text('20'),'The value 20 for lead time did not appear')
|
||||||
#~ @@ie.button(:id, 'create').click
|
@@ie.button(:id, 'create').click
|
||||||
#~ @@ie.wait
|
@@ie.wait
|
||||||
#~ @@ie.text_field(:id, 'P24_CODE').set('ADDON2')
|
@@ie.text_field(:id, 'P24_CODE').set('ADDON2')
|
||||||
#~ @@ie.text_field(:id, 'P24_DESCRIPTION').set('Add-on for meter M2')
|
@@ie.text_field(:id, 'P24_DESCRIPTION').set('Add-on for meter M2')
|
||||||
#~ @@ie.text_field(:id, 'P24_LEAD_TIME').set('20')
|
@@ie.text_field(:id, 'P24_LEAD_TIME').set('20')
|
||||||
#~ @@ie.button(:id, 'create').click
|
@@ie.button(:id, 'create').click
|
||||||
#~ @@ie.wait
|
@@ie.wait
|
||||||
#~ assert(@@ie.contains_text('Additional Items'),'The additional item screen did not appear')
|
assert(@@ie.contains_text('Additional Items'),'The additional item screen did not appear')
|
||||||
#~ assert(@@ie.contains_text('ADDON1'),'The new record with additional item code 1765BH2 did not appear')
|
assert(@@ie.contains_text('ADDON1'),'The new record with additional item code 1765BH2 did not appear')
|
||||||
#~ assert(@@ie.contains_text('Add-on for meter M2'),'The description for additional item did not appear')
|
assert(@@ie.contains_text('Add-on for meter M2'),'The description for additional item did not appear')
|
||||||
#~ assert(@@ie.contains_text('20'),'The value 20 for lead time did not appear')
|
assert(@@ie.contains_text('20'),'The value 20 for lead time did not appear')
|
||||||
#~ end
|
end
|
||||||
#
|
#
|
||||||
#Check that the code ADDON2 links to the Create/Edit Additional Item form and the form appears with the correct data
|
#Check that the code ADDON2 links to the Create/Edit Additional Item form and the form appears with the correct data
|
||||||
#in the fields. Check that the description can be updated and the updated record appears in the Additional Items report.
|
#in the fields. Check that the description can be updated and the updated record appears in the Additional Items report.
|
||||||
@@ -123,7 +123,6 @@ class Test_06_addon_screen < Test::Unit::TestCase
|
|||||||
assert(@@ie.button(:id, 'apply_changes').exists?,'The Apply Changes button was not available')
|
assert(@@ie.button(:id, 'apply_changes').exists?,'The Apply Changes button was not available')
|
||||||
assert(@@ie.hidden(:id, 'P24_CODE').exists?,'The CODE field was not hidden')
|
assert(@@ie.hidden(:id, 'P24_CODE').exists?,'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('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
|
end
|
||||||
#
|
#
|
||||||
#Check that an additional item record with child records cannot be deleted
|
#Check that an additional item record with child records cannot be deleted
|
||||||
|
|||||||
Reference in New Issue
Block a user