From 70083d2c516441d4040d369b544ab65a1c5b2ffa Mon Sep 17 00:00:00 2001 From: hlm7 Date: Mon, 18 Jul 2011 18:35:29 +0000 Subject: [PATCH] Holly tweaked the CreatePeople test suite. --- .../suites/CreatePeople/AddFacultyInfo.html | 260 ++++++++++++++++++ .../suites/CreatePeople/EditFacultyInfo.html | 105 +++++++ 2 files changed, 365 insertions(+) diff --git a/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html b/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html index 3f164487..61dbd494 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html +++ b/utilities/acceptance-tests/suites/CreatePeople/AddFacultyInfo.html @@ -719,11 +719,256 @@ Faculty, Jane + + comment + Test 4 new fields with Release 1.3 + + + + clickAndWait + css=a.add-eligibleFor > img.add-individual + + + + assertTitle + Edit + + + + verifyTextPresent + Select an existing Credential for Faculty, Jane + + + + clickAndWait + link=Cancel + + + + assertTitle + Faculty, Jane + + + + clickAndWait + css=a.add-eligibleFor > img.add-individual + + + + assertTitle + Edit + + + + verifyTextPresent + Select an existing Credential for Faculty, Jane + + + + clickAndWait + submit + + + + assertTitle + Edit + + + + clickAndWait + link=Cancel + + + + clickAndWait + css=a.add-eligibleFor > img.add-individual + + + + assertTitle + Edit + + + + clickAndWait + submit + + + + assertTitle + Edit + + + + type + name + Primate Expert Association + + + clickAndWait + submit + + + + assertTitle + Faculty, Jane + + + + clickAndWait + css=a.add-hasCredential > img.add-individual + + + + assertTitle + Edit + + + + select + typeOfNew + label=Licensure (core) + + + clickAndWait + submit + + + + assertTitle + Edit + + + + type + name + Licensed Primate Expert + + + clickAndWait + submit + + + + assertTitle + Faculty, Jane + + + + clickAndWait + link=Cancel + + + + assertTitle + Faculty, Jane + + + + clickAndWait + css=a.add-eRACommonsId > img.add-individual + + + + assertTitle + Edit + + + + clickAndWait + link=Cancel + + + + assertTitle + Faculty, Jane + + + + clickAndWait + css=a.add-eRACommonsId > img.add-individual + + + + assertTitle + Edit + + + + type + tinymce + ABC123987 + + + clickAndWait + submit + + + + assertTitle + Faculty, Jane + + + + verifyTextPresent + Add new entry for: eRA Commons id + + + + clickAndWait + css=a.add-assigneeFor > img.add-individual + + + + assertTitle + Edit + + + + verifyTextPresent + Add an entry to: assigneeFor + + + + verifyTextPresent + There are no entries in the system to select from. + + comment Verify all fields added + + clickAndWait + link=Index + + + + assertTitle + Index of Contents + + + + clickAndWait + link=Faculty Member + + + + assertTitle + Faculty Member + + + + clickAndWait + link=Faculty, Jane + + + + assertTitle + Faculty, Jane + + verifyElementPresent link=Primatia @@ -854,6 +1099,21 @@ Apes + + verifyElementPresent + link=Primate Expert Association + + + + verifyElementPresent + link=Licensed Primate Expert + + + + verifyTextPresent + ABC123987 + + comment Log out diff --git a/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html b/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html index a98dfd13..fe605554 100644 --- a/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html +++ b/utilities/acceptance-tests/suites/CreatePeople/EditFacultyInfo.html @@ -744,6 +744,111 @@ Faculty, Jane + + clickAndWait + css=a.edit-eligibleFor > img.edit-individual + + + + assertTitle + Edit + + + + select + typeOfNew + label=Credential (core) + + + clickAndWait + //input[@id='submit' and @value='Add a new item of this type'] + + + + assertTitle + Edit + + + + type + name + Primate Experts + + + clickAndWait + submit + + + + assertTitle + Faculty, Jane + + + + clickAndWait + css=a.edit-hasCredential > img.edit-individual + + + + assertTitle + Edit + + + + select + typeOfNew + label=Licensure (core) + + + clickAndWait + //input[@id='submit' and @value='Add a new item of this type'] + + + + assertTitle + Edit + + + + type + name + Licensed Primate Instructor + + + clickAndWait + submit + + + + assertTitle + Faculty, Jane + + + + clickAndWait + css=a.edit-eRACommonsId > img.edit-individual + + + + assertTitle + Edit + + + + type + tinymce + ABC121212 + + + clickAndWait + submit + + + + assertTitle + Faculty, Jane + + comment Verify all fields updated