diff --git a/tests/enquirytests.rb b/tests/enquirytests.rb index 16e46e1..f146823 100644 --- a/tests/enquirytests.rb +++ b/tests/enquirytests.rb @@ -694,7 +694,7 @@ class Test_02_enquiry < Test::Unit::TestCase # #Supplier admin should be unable to create an enquiry via the menu. # - def test_22_logout_and_then_in_as supplier_admin + def test_22_logout_and_then_in_as_supplier_admin menu('Logout') assert(@@ie.button(:value, 'Login').exists?,'The Login button was not available') @@ie.button(:value, 'Login').click @@ -839,7 +839,11 @@ class Test_02_enquiry < Test::Unit::TestCase assert(@@ie.contains_text('Contact Details'),'The Contact Details region not found') assert(@@ie.contains_text('Job Info'),'The Job Info region not found') assert_equal(@@savedenquiryid,@@ie.text_field(:id,'P32_ID').value,' Enquiry screen for'+@@savedenquiryid+' not found') - assert_equal(false,@@ie.text_field(:id,'P32_ACCESS_PASSWORD').assert_not_readonly,'Password field is not read only, it should be!') + assert(@@ie.hidden(:id,'P32_ACCESS_PASSWORD').exists?,'Password field is not read only, it should be!') + menu('Logout') + assert(@@ie.button(:value, 'Login').exists?,'The Login button was not available') + @@ie.button(:value, 'Login').click + @@ie.wait end #Check asterisk on correct fields #Amend an existing enquiry