altered script inline with ticket #255 (changing Apply changes to save)
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3757 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -33,7 +33,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
#check we've got the save and cancel buttons but not apply changes
|
||||
assert(@@ie.button(:value, 'Save').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert_not_equal(@@ie.button(:value, 'Apply Changes').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert_not_equal(@@ie.button(:id, 'update').exists?,true,'Found Save(update) button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert(@@ie.text_field(:id,'P32_ID').exists?,'Could not find P32_ID field')
|
||||
@@ -622,7 +622,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
#check we've got the save and cancel buttons but not apply changes
|
||||
assert(@@ie.button(:value, 'Save').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert_not_equal(@@ie.button(:value, 'Apply Changes').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert_not_equal(@@ie.button(:id, 'update').exists?,true,'Found Save(update) button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
@@ -740,7 +740,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
#check we've got the save and cancel buttons but not apply changes
|
||||
assert(@@ie.button(:value, 'Save').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert_not_equal(@@ie.button(:value, 'Apply Changes').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert_not_equal(@@ie.button(:id, 'update').exists?,true,'Found Save(update) button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
@@ie.select_list(:id,'P32_AGENT_COMT_CODE').set 'Fax'
|
||||
@@ -769,7 +769,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
@@ie.wait
|
||||
assert_nil(@@ie.contains_text('Error'),'Error found (__LINE__) '+geterrormess(@@ie))
|
||||
assert_equal(false,@@ie.button(:value, 'Save').exists?,'Found Save button when it should have been hidden')
|
||||
assert(@@ie.button(:value, 'Apply Changes').exists?,'Could not find an Apply Changes button')
|
||||
assert(@@ie.button(:id, 'update').exists?,'Could not find a Save(update) button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert(@@ie.button(:value, 'Upload File').exists?,'Could not find an Upload File button')
|
||||
assert(@@ie.text_field(:id,'P32_ID').to_s,'No value in the ID field')
|
||||
@@ -811,7 +811,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
@@ie.text_field(:id,'P32_OTHER_INFORMATION').set ''
|
||||
#@@ie.text_field(:id,'P32_EXISTING_LOGGER').set ''
|
||||
#@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').set ''
|
||||
@@ie.button(:value, 'Apply Changes').click
|
||||
@@ie.button(:id, 'update').click
|
||||
@@ie.wait
|
||||
|
||||
@@ie.button(:value, 'Upload File').click
|
||||
@@ -876,7 +876,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
#check we've got the save and cancel buttons but not apply changes
|
||||
assert(@@ie.button(:value, 'Save').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert_not_equal(@@ie.button(:value, 'Apply Changes').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert_not_equal(@@ie.button(:id, 'update').exists?,true,'Found Save(update) button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
@@ie.select_list(:id,'P32_MKTP_REF').set 'Northern Supplies'
|
||||
@@ -908,7 +908,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
@@ie.button(:value, 'Save').click
|
||||
@@ie.wait
|
||||
assert_nil(@@ie.contains_text('Error'),'Error found '+geterrormess(@@ie))
|
||||
assert(@@ie.button(:value, 'Apply Changes').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:id, 'update').exists?,'Could not find a Save(update) button')
|
||||
assert(@@ie.button(:value, 'Upload File').exists?,'Could not find a Save button')
|
||||
@@ie.button(:value, 'Upload File').click
|
||||
@@ie.wait
|
||||
@@ -948,7 +948,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
#check we've got the save and cancel buttons but not apply changes
|
||||
assert(@@ie.button(:value, 'Save').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert_not_equal(@@ie.button(:value, 'Apply Changes').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert_not_equal(@@ie.button(:id, 'update').exists?,true,'Found Save(update) button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
@@ie.select_list(:id,'P32_MKTP_REF').set 'Northern Supplies'
|
||||
@@ -980,12 +980,12 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
@@ie.button(:value, 'Save').click
|
||||
@@ie.wait
|
||||
assert_nil(@@ie.contains_text('Error'),'Error found '+geterrormess(@@ie))
|
||||
assert(@@ie.button(:value, 'Apply Changes').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:id, 'update').exists?,'Could not find a Save(update) button')
|
||||
assert(@@ie.button(:value, 'Upload File').exists?,'Could not find a Save button')
|
||||
|
||||
assert_nil(@@ie.contains_text('Error'),'Error found')
|
||||
assert_equal(false,@@ie.button(:value, 'Save').exists?,'Found Save button when it should have been hidden')
|
||||
assert(@@ie.button(:value, 'Apply Changes').exists?,'Could not find an Apply Changes button')
|
||||
assert(@@ie.button(:id, 'update').exists?,'Could not find a Save(update) button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert(@@ie.button(:value, 'Upload File').exists?,'Could not find an Upload File button')
|
||||
assert(@@ie.text_field(:id,'P32_ID').to_s,'No value in the ID field')
|
||||
|
||||
Reference in New Issue
Block a user