From 786cacba4d56e29aa39ea61f0d601780c31bfa7c Mon Sep 17 00:00:00 2001 From: hlm7 Date: Mon, 21 Nov 2011 16:24:25 +0000 Subject: [PATCH] Holly made more changes to self editing test cases. --- .../suites/SelfEditing/AddSelfEditorId.html | 41 +- .../CheckSelfEditorPrivileges.html | 2 +- .../SelfEditing/CreateNewSelfEditorUser.html | 16 +- .../suites/SelfEditing/DeleteFacultyInfo.html | 1886 +---------------- .../SelfEditing/DeleteNewSelfEditorUser.html | 9 +- .../SelfEditing/FirstTimeSelfEditorLogin.html | 4 +- .../SelfEditing/TryNewSelfEditorPassword.html | 7 +- 7 files changed, 60 insertions(+), 1905 deletions(-) diff --git a/utilities/acceptance-tests/suites/SelfEditing/AddSelfEditorId.html b/utilities/acceptance-tests/suites/SelfEditing/AddSelfEditorId.html index 4fbd95cd..4600ac6f 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/AddSelfEditorId.html +++ b/utilities/acceptance-tests/suites/SelfEditing/AddSelfEditorId.html @@ -126,12 +126,12 @@ comment - Add self-editor id + Edit some fields clickAndWait - css=a.add-orcidId > img.add-individual + css=a.add-overview > img.add-individual @@ -142,7 +142,7 @@ type tinymce - JaneFaculty@cornell.edu + I am updating my own profile. clickAndWait @@ -154,6 +154,41 @@ Faculty, Jane + + verifyTextPresent + I am updating my own profile. + + + + clickAndWait + css=a.edit-overview > img.edit-individual + + + + assertTitle + Edit + + + + type + tinymce + I am updating my own profile.  Yippee! + + + clickAndWait + id=submit + + + + assertTitle + Faculty, Jane + + + + verifyTextPresent + I am updating my own profile. Yippee! + + comment Log out diff --git a/utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html b/utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html index efdde855..97d943e0 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html +++ b/utilities/acceptance-tests/suites/SelfEditing/CheckSelfEditorPrivileges.html @@ -91,7 +91,7 @@ assertTitle - VIVO + Faculty, Jane diff --git a/utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html b/utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html index 28186f42..2714ef5a 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html +++ b/utilities/acceptance-tests/suites/SelfEditing/CreateNewSelfEditorUser.html @@ -144,14 +144,24 @@ last-name Faculty + + type + id=externalAuthId + JaneFaculty@cornell.edu + click - //input[@name='role' and @value='http://permissionSet-1'] + id=verifyProfileLink - clickAndWait - submitAdd + waitForPopUp + verifyMatchWindow + 30000 + + + click + //input[@name='role' and @value='http://permissionSet-1'] diff --git a/utilities/acceptance-tests/suites/SelfEditing/DeleteFacultyInfo.html b/utilities/acceptance-tests/suites/SelfEditing/DeleteFacultyInfo.html index 7bcf929f..b8c816cc 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/DeleteFacultyInfo.html +++ b/utilities/acceptance-tests/suites/SelfEditing/DeleteFacultyInfo.html @@ -126,1337 +126,7 @@ comment - Delete top info - - - - clickAndWait - //ul[@id='individual-hasResearchArea']/li[1]/a[3]/img - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //ul[@id='individual-hasResearchArea']/li/a[3]/img - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //section[@id='individual-info']/div/a[2]/img - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - css=img.edit-individual - - - - click - link=Delete - - - - assertConfirmation - Are you sure you want to remove this web page? - - - - waitForPageToLoad - 5000 - - - - assertTitle - Edit - - - - click - link=Delete - - - - assertConfirmation - Are you sure you want to remove this web page? - - - - waitForPageToLoad - 5000 - - - - assertTitle - Edit - - - - click - link=Delete - - - - assertConfirmation - Are you sure you want to remove this web page? - - - - waitForPageToLoad - 5000 - - - - clickAndWait - returnToIndividual - - - - assertTitle - Faculty, Jane - - - - comment - Delete Affiliation info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Delete Research info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Delete Teaching info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Delete Service info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Delete Background info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Delete Contact info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Delete Identity info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Delete Other info - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - clickAndWait - //img[@alt='delete'] - - - - assertTitle - Edit - - - - clickAndWait - submit - - - - assertTitle - Faculty, Jane - - - - comment - Verify everything is gone - - - - verifyElementNotPresent - link=African Primates - - - - verifyElementNotPresent - link=Primatia Africana - - - - verifyElementNotPresent - link=CUL Homepage - - - - verifyElementNotPresent - link=CIT Homepage - - - - verifyTextNotPresent - I am named after Jane in the Tarzan stories. Yes, my last name really is faculty. - - - - verifyElementNotPresent - link=Faculty, Jane - - - - verifyTextPresent - Faculty Member - - - - verifyTextNotPresent - Assistant Professor - - - - verifyElementNotPresent - link=Librarian, Lily - - - - verifyTextNotPresent - Assistant Librarian - - - - verifyTextNotPresent - Queen - - - - verifyTextNotPresent - I study apes, of course. - - - - verifyElementNotPresent - link=Africa - - - - verifyTextNotPresent - geographical_region - - - - verifyElementNotPresent - link=Mozambique - - - - verifyElementNotPresent - link=Primate Foundation of Africa - - - - verifyTextNotPresent - Advising Relationship - - - - verifyElementNotPresent - link=SPCA - - - - verifyTextNotPresent - Advising Relationship - - - - verifyTextNotPresent - I teach apes how to communicate with humans. - - - - verifyTextNotPresent - I travel the world teaching apes how to communicate with humans. - - - - verifyElementNotPresent - link=Humane Society of Africa - - - - verifyTextNotPresent - Advising Relationship - - - - verifyElementNotPresent - link=Primates Unite - - - - verifyTextNotPresent - Advising Relationship - - - - verifyElementNotPresent - link=Chimp Lover for Life - - - - verifyTextNotPresent - Award or Honor - - - - verifyElementNotPresent - link=Ape Trainer of the Decade - - - - verifyTextNotPresent - Award or Honor - - - - verifyTextNotPresent - E. - - - - verifyTextNotPresent - 607-288-8888 - - - - verifyTextNotPresent - 607-277-7777 - - - - verifyTextNotPresent - jane@gmail.com - - - - verifyTextNotPresent - mejane@primates-r-us.com - - - - verifyElementNotPresent - link=CIT, Cornell University, Ithaca, NY, 14853 - - - - verifyTextNotPresent - Address - - - - verifyElementNotPresent - link=Jungle 1234, Africa, 1234-56789 - - - - verifyTextNotPresent - Address - - - - verifyTextNotPresent - Mrs. - - - - verifyTextNotPresent - Jr. - - - - verifyTextNotPresent - 11111 - - - - verifyTextNotPresent - 454545 - - - - verifyTextNotPresent - 222222 - - - - verifyTextNotPresent - 67676767 - - - - verifyTextNotPresent - 987654321 - - - - verifyTextNotPresent - 3333333 - - - - verifyTextNotPresent - African Primates - - - - verifyTextNotPresent - African Apes - - - - verifyElementNotPresent - link=Primate Expert Association - - - - verifyElementNotPresent - link=Primate Experts - - - - verifyElementNotPresent - link=Licensed Primate Expert - - - - verifyElementNotPresent - link=Licensed Primate Instructor - - - - verifyTextNotPresent - ABC123987 - - - - verifyTextNotPresent - ABC121212 - - - - verifyElementNotPresent - link=USA1234567890 - - - - verifyElementNotPresent - link=USABC123456789 - - - - comment - Delete Index stuff - - - - clickAndWait - link=Index - - - - verifyTextPresent - Faculty Member - - - - clickAndWait - link=Certificate - - - - assertTitle - Certificate - - - - clickAndWait - link=Primate Expert Association - - - - assertTitle - Primate Expert Association + Delete Jane Faculty @@ -1471,7 +141,7 @@ clickAndWait - //input[@value="Edit This Individual"] + //input[@value='Edit This Individual'] @@ -1481,557 +151,7 @@ click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Index - - - - assertTitle - Index of Contents - - - - clickAndWait - link=Patent - - - - assertTitle - Patent - - - - clickAndWait - link=USA1234567890 - - - - assertTitle - USA1234567890 - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Index - - - - assertTitle - Index of Contents - - - - clickAndWait - link=Patent - - - - assertTitle - Patent - - - - clickAndWait - link=USABC123456789 - - - - assertTitle - USABC123456789 - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Index - - - - assertTitle - Index of Contents - - - - clickAndWait - link=Subject Area - - - - assertTitle - Subject Area - - - - clickAndWait - link=African Primates - - - - assertTitle - African Primates - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Index - - - - assertTitle - Index of Contents - - - - clickAndWait - link=Subject Area - - - - assertTitle - Subject Area - - - - clickAndWait - link=Primatia - - - - assertTitle - Primatia - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Index - - - - assertTitle - Index of Contents - - - - clickAndWait - link=Subject Area - - - - assertTitle - Subject Area - - - - clickAndWait - link=Primatia Africana - - - - assertTitle - Primatia Africana - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - comment - Search for more stuff to be deleted - - - - type - querytext - primate - - - clickAndWait - css=input.search - - - - assertTitle - primate - VIVO Search Results - - - - clickAndWait - link=Primate Experts - - - - assertTitle - Primate Experts - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - type - querytext - primate - - - clickAndWait - css=input.search - - - - assertTitle - primate - VIVO Search Results - - - - clickAndWait - link=Licensed Primate Expert - - - - assertTitle - Licensed Primate Expert - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete - - - - assertConfirmation - Are you SURE you want to delete this individual? If in doubt, CANCEL. - - - - waitForPageToLoad - 5000 - - - - assertTitle - VIVO Site Administration - - - - type - querytext - primate - - - clickAndWait - css=input.search - - - - assertTitle - primate - VIVO Search Results - - - - clickAndWait - link=Licensed Primate Instructor - - - - assertTitle - Licensed Primate Instructor - - - - clickAndWait - link=Edit this individual - - - - assertTitle - Individual Control Panel - - - - clickAndWait - //input[@value="Edit This Individual"] - - - - assertTitle - Individual Editing Form - - - - click - _delete + name=_delete diff --git a/utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html b/utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html index 23d102c2..56ef2aca 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html +++ b/utilities/acceptance-tests/suites/SelfEditing/DeleteNewSelfEditorUser.html @@ -116,7 +116,7 @@ verifyElementPresent - link=RickRookie@cornell.edu + link=JaneFaculty@cornell.edu @@ -134,11 +134,6 @@ delete-account - - assertConfirmation - Are you sure you want to delete this account? - - waitForPageToLoad 5000 @@ -161,7 +156,7 @@ verifyElementNotPresent - link=RickRookie@cornell.edu + link=JaneFaculty@cornell.edu diff --git a/utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html b/utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html index aa479f08..9aada3a1 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html +++ b/utilities/acceptance-tests/suites/SelfEditing/FirstTimeSelfEditorLogin.html @@ -140,8 +140,8 @@ - verifyTextPresent - You have logged in, but the system contains no profile for you. + assertTitle + Faculty, Jane diff --git a/utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html b/utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html index 1f803be4..d085d00e 100644 --- a/utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html +++ b/utilities/acceptance-tests/suites/SelfEditing/TryNewSelfEditorPassword.html @@ -81,7 +81,7 @@ assertTitle - VIVO + Faculty, Jane @@ -99,11 +99,6 @@ Log out - - verifyTextPresent - You have logged in, but the system contains no profile for you. - - comment Logout