From ce2e6545c42ac20978403723ec02baddd7baacfb Mon Sep 17 00:00:00 2001 From: Holly Mistlebauer Date: Fri, 25 Oct 2013 15:55:21 -0400 Subject: [PATCH] Another test case changed by Holly... --- .../AddPublications/ValidateFields.html | 650 +++++++++++++++++- 1 file changed, 625 insertions(+), 25 deletions(-) diff --git a/utilities/acceptance-tests/suites/AddPublications/ValidateFields.html b/utilities/acceptance-tests/suites/AddPublications/ValidateFields.html index 16e5a287..c4efcd06 100644 --- a/utilities/acceptance-tests/suites/AddPublications/ValidateFields.html +++ b/utilities/acceptance-tests/suites/AddPublications/ValidateFields.html @@ -86,10 +86,15 @@ Furter, Frank + + click + //div[@id='wrapper-content']/ul/li[4] + + clickAndWait - //h3[@id='authorInAuthorship']/a/img + css=a.add-relatedBy > img.add-individual @@ -107,6 +112,16 @@ Publication Type + + verifyTextPresent + Title + + + + verifyTextPresent + Publication Date + + clickAndWait @@ -121,7 +136,7 @@ clickAndWait - //h3[@id='authorInAuthorship']/a/img + css=a.add-relatedBy > img.add-individual @@ -139,6 +154,16 @@ Publication Type + + verifyTextPresent + Title + + + + verifyTextPresent + Publication Date + + select @@ -152,6 +177,11 @@ + + clickAndWait + css=a.add-relatedBy > img.add-individual + + assertTitle Edit @@ -167,16 +197,86 @@ Publication Type + + verifyTextPresent + Title + + + + verifyTextPresent + Publication Date + + select typeSelector label=Chapter + + verifyTextPresent + Create publication entry for Furter, Frank + + + + verifyTextPresent + Publication Type + + verifyTextPresent Title + + verifyTextPresent + Published in + + + + verifyTextPresent + Editor: Last name + + + + verifyTextPresent + First name + + + + verifyTextPresent + Publisher + + + + verifyTextPresent + Place of Publication + + + + verifyTextPresent + Volume + + + + verifyTextPresent + Chapter + + + + verifyTextPresent + Start Page + + + + verifyTextPresent + End Page + + + + verifyTextPresent + Publication Date + + clickAndWait submit @@ -255,7 +355,7 @@ type - id=number + id=chapterNbr 15 @@ -296,7 +396,7 @@ verifyTextPresent - Nintendo O.K. for Kids.  Raising Children in the 21st Century. Ed. Mouse, Minnie.  New York: Marcel Dekker. 123-144. + Nintendo O.K. for Kids.  Raising Children in the 21st Century. Ed. Mouse, Minnie.  New York: Marcel Dekker. 123-144.  2009 @@ -305,9 +405,14 @@ link=Nintendo O.K. for Kids + + click + //div[@id='wrapper-content']/ul/li[16] + + clickAndWait - //img[@alt='add'] + css=img.add-individual @@ -425,6 +530,11 @@ Crop Photo for Nintendo O.K. for Kids + + verifyTextPresent + Photo Upload + + clickAndWait css=input.submit @@ -619,7 +729,7 @@ clickAndWait - //h3[@id='informationResourceInAuthorship']/a/img + css=a.add-relatedBy > img.add-individual @@ -644,7 +754,7 @@ clickAndWait - link=Return to Publication + id=returnLink @@ -654,7 +764,7 @@ clickAndWait - //h3[@id='informationResourceInAuthorship']/a/img + css=a.add-relatedBy > img.add-individual @@ -667,6 +777,21 @@ showAddFormButton + + verifyTextPresent + Nintendo O.K. for Kids + + + + verifyTextPresent + Manage Authors + + + + verifyTextPresent + Furter, Frank + + verifyTextPresent Add an Author @@ -677,6 +802,16 @@ Last name + + verifyTextPresent + First name + + + + verifyTextPresent + Middle name + + click link=Cancel @@ -687,6 +822,41 @@ showAddFormButton + + verifyTextPresent + Nintendo O.K. for Kids + + + + verifyTextPresent + Manage Authors + + + + verifyTextPresent + Furter, Frank + + + + verifyTextPresent + Add an Author + + + + verifyTextPresent + Last name + + + + verifyTextPresent + First name + + + + verifyTextPresent + Middle name + + type id=lastName @@ -814,6 +984,11 @@ This relates an information resource to a person it features. + + verifyTextPresent + Features Name + + clickAndWait link=Cancel @@ -835,9 +1010,29 @@ - select - id=objectVar - label=Mouse, Minnie + verifyTextPresent + Add an entry to: features + + + + verifyTextPresent + This relates an information resource to a person it features. + + + + verifyTextPresent + Features Name + + + + type + id=object + Mouse + + + click + id=ui-active-menuitem + clickAndWait @@ -849,6 +1044,16 @@ Nintendo O.K. for Kids + + verifyTextPresent + Mouse, Minnie  Person + + + + verifyElementPresent + css=a[title="name"] + + clickAndWait @@ -926,6 +1131,21 @@ Select an existing Event for Nintendo O.K. for Kids + + verifyTextPresent + Relates a document to an event; for example, a paper to a conference. + + + + verifyTextPresent + Event Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + clickAndWait link=Cancel @@ -946,6 +1166,26 @@ Edit + + verifyTextPresent + Select an existing Event for Nintendo O.K. for Kids + + + + verifyTextPresent + Relates a document to an event; for example, a paper to a conference. + + + + verifyTextPresent + Event Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + select id=typeOfNew @@ -961,6 +1201,11 @@ Edit + + verifyTextPresent + Create "presented at" entry for Nintendo O.K. for Kids + + type name @@ -992,6 +1237,11 @@ Add an entry to: status + + verifyTextPresent + Status Name + + clickAndWait link=Cancel @@ -1012,6 +1262,36 @@ Edit + + verifyTextPresent + Add an entry to: status + + + + verifyTextPresent + Status Name + + + + clickAndWait + link=Cancel + + + + assertTitle + Nintendo O.K. for Kids + + + + clickAndWait + css=a.add-status > img.add-individual + + + + assertTitle + Edit + + select objectVar @@ -1030,7 +1310,7 @@ clickAndWait - //h3[@id='hasPart']/a/img + css=a.add-BFO_0000051 > img.add-individual @@ -1040,7 +1320,12 @@ verifyTextPresent - Select an existing Document Part for Nintendo O.K. for Kids + Add an entry to: has part + + + + verifyTextPresent + Has Part Name @@ -1055,7 +1340,7 @@ clickAndWait - //h3[@id='hasPart']/a/img + css=a.add-BFO_0000051 > img.add-individual @@ -1063,6 +1348,16 @@ Edit + + verifyTextPresent + Add an entry to: has part + + + + verifyTextPresent + Has Part Name + + select typeOfNew @@ -1096,7 +1391,7 @@ clickAndWait - //h3[@id='partOf']/a/img + css=a.add-BFO_0000050 > img.add-individual @@ -1106,12 +1401,12 @@ verifyTextPresent - Select an existing Document for Nintendo O.K. for Kids + Add an entry to: part of verifyTextPresent - Relates a component of something to the whole thing. + Part Of Name @@ -1126,7 +1421,7 @@ clickAndWait - //h3[@id='partOf']/a/img + css=a.add-BFO_0000050 > img.add-individual @@ -1134,6 +1429,16 @@ Edit + + verifyTextPresent + Add an entry to: part of + + + + verifyTextPresent + Part Of Name + + select typeOfNew @@ -1180,6 +1485,16 @@ Select an existing Geographic Region for Nintendo O.K. for Kids + + verifyTextPresent + Geographic Region Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + clickAndWait link=Cancel @@ -1200,6 +1515,21 @@ Edit + + verifyTextPresent + Select an existing Geographic Region for Nintendo O.K. for Kids + + + + verifyTextPresent + Geographic Region Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + type id=object @@ -1231,6 +1561,16 @@ Edit + + verifyTextPresent + Add new entry for: Online Computer Library Center (OCLC) number + + + + verifyTextPresent + An oclcnum is a sequential accession number assigned by OCLC as bibliographic records are entered into OCLC WorldCat (the OCLC Online Union Catalog). + + clickAndWait link=Cancel @@ -1256,6 +1596,16 @@ Edit + + verifyTextPresent + Add new entry for: Online Computer Library Center (OCLC) number + + + + verifyTextPresent + An oclcnum is a sequential accession number assigned by OCLC as bibliographic records are entered into OCLC WorldCat (the OCLC Online Union Catalog). + + waitForElementPresent tinymce @@ -1287,6 +1637,11 @@ Edit + + verifyTextPresent + Add new entry for: PubMed ID + + verifyTextPresent A PMID (PubMed Identifier or PubMed Unique Identifier) is a unique number assigned to each PubMed citation of life sciences and biomedical scientific journal articles. @@ -1317,6 +1672,16 @@ Edit + + verifyTextPresent + Add new entry for: PubMed ID + + + + verifyTextPresent + A PMID (PubMed Identifier or PubMed Unique Identifier) is a unique number assigned to each PubMed citation of life sciences and biomedical scientific journal articles. + + waitForElementPresent tinymce @@ -1444,6 +1809,21 @@ Edit + + verifyTextPresent + Manage Concepts + + + + verifyTextPresent + There are currently no concepts specified. + + + + verifyElementPresent + link=Return to Profile Page + + click id=showAddFormButton @@ -1459,6 +1839,21 @@ Edit + + verifyTextPresent + Create Your Own Concept + + + + verifyTextPresent + Concept + + + + verifyElementPresent + link=Return to Manage Concepts + + type id=relatedIndLabel @@ -1474,6 +1869,36 @@ Edit + + verifyTextPresent + Manage Concepts + + + + verifyTextPresent + Concept (Type) + + + + verifyTextPresent + Vocabulary Source + + + + verifyTextPresent + Child Development + + + + verifyElementPresent + link=Remove + + + + verifyElementPresent + link=Return to Profile Page + + clickAndWait link=Return to Profile Page @@ -1525,6 +1950,16 @@ Edit + + verifyTextPresent + Add new entry for: keywords + + + + verifyTextPresent + Intended for a word or short phrase only where no instance of a controlled vocabulary can be identified. Can also be used to help in highlighting subtle difference in work. + + waitForElementPresent tinymce @@ -1602,14 +2037,19 @@ //h3[@id='reproduces']/a/img + + assertTitle + Edit + + verifyTextPresent Add an entry to: reproduces - assertTitle - Edit + verifyTextPresent + Reproduces Name @@ -1632,6 +2072,16 @@ Edit + + verifyTextPresent + Add an entry to: reproduces + + + + verifyTextPresent + Reproduces Name + + select id=objectVar @@ -1736,12 +2186,12 @@ verifyTextPresent - There are no entries in the system from which to select. + Global Citation Count Name verifyTextPresent - Please create a new entry. + If you don't find the appropriate entry on the selection list above: @@ -1779,6 +2229,36 @@ Edit + + verifyTextPresent + Select an existing Global Citation Count for Nintendo O.K. for Kids + + + + verifyTextPresent + Global Citation Count Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + + + verifyElementPresent + link=Cancel + + + + clickAndWait + id=offerCreate + + + + assertTitle + Edit + + type id=name @@ -1794,6 +2274,11 @@ Nintendo O.K. for Kids + + assertTitle + Nintendo O.K. for Kids + + clickAndWait @@ -1805,11 +2290,51 @@ Edit + + verifyTextPresent + Select an existing Event for Nintendo O.K. for Kids + + + + verifyTextPresent + Relates a document to an event; for example, a paper to a conference. + + + + verifyTextPresent + Event Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + + + verifyElementPresent + link=Cancel + + clickAndWait id=offerCreate + + assertTitle + Edit + + + + verifyTextPresent + Create "presented at" entry for Nintendo O.K. for Kids + + + + verifyElementPresent + link=Cancel + + clickAndWait link=Cancel @@ -1830,6 +2355,31 @@ Edit + + verifyTextPresent + Select an existing Event for Nintendo O.K. for Kids + + + + verifyTextPresent + Relates a document to an event; for example, a paper to a conference. + + + + verifyTextPresent + Event Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + + + verifyElementPresent + link=Cancel + + clickAndWait id=offerCreate @@ -1840,6 +2390,16 @@ Edit + + verifyTextPresent + Create "presented at" entry for Nintendo O.K. for Kids + + + + verifyElementPresent + link=Cancel + + type id=name @@ -1858,7 +2418,7 @@ clickAndWait - css=a.add-partOf > img.add-individual + css=a.add-BFO_0000050 > img.add-individual @@ -1868,12 +2428,12 @@ verifyTextPresent - Select an existing Document for Nintendo O.K. for Kids + Add an entry to: part of verifyTextPresent - Relates a component of something to the whole thing. + Part Of Name @@ -1927,6 +2487,16 @@ Edit + + verifyTextPresent + Select an existing Information Content Entity for Nintendo O.K. for Kids + + + + verifyTextPresent + Information Content Entity Name + + verifyTextPresent If you don't find the appropriate entry on the selection list above: @@ -1957,6 +2527,26 @@ Edit + + verifyTextPresent + Select an existing Information Content Entity for Nintendo O.K. for Kids + + + + verifyTextPresent + Information Content Entity Name + + + + verifyTextPresent + If you don't find the appropriate entry on the selection list above: + + + + verifyElementPresent + link=Cancel + + clickAndWait id=offerCreate @@ -1967,6 +2557,16 @@ Edit + + verifyElementPresent + link=Cancel + + + + verifyTextPresent + Create "cited by" entry for Nintendo O.K. for Kids + + type id=name