Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public Acquisition(){


xpathMap.put("Acquisition Authorizer", "//*[@id=\"primaryTab\"]/div/div[3]/div[1]/div[2]/div[1]/div[1]/div[3]/div[2]/table/tbody/tr/td[1]/input[2]");
xpathMap.put("Acquisition Source", "//*[@name=\"primary-fields.acquisitionSources\"]/following-sibling::input[1]");
xpathMap.put("Acquisition Source", "//*[@id=\"primaryTab\"]/div/div[3]/div/div[2]/div/div/div[6]/div[2]/div/ul/li/input[3]");
xpathMap.put("Search Acquisition Source", "//*[@id=\"all-content\"]/div/div/div/div/div/div[2]/div[4]/div/div/div/div/div[6]/div[2]/div/ul/li/input[3]");

xpathMap.put("Funding Source", "//*[@id=\"repeat::\"]/td[4]/input[2]");
xpathMap.put("Search Acquisition source", "//*[@name=\"primary-acquisitionSources\"]/following-sibling::input[1]");
xpathMap.put("Search Funding source", "//*[@id=\".csc-acquisition-acquisitionFunding\"]/input[2]");
Expand Down
61 changes: 31 additions & 30 deletions src/test/java/org/collectionspace/qa/records/Cataloging.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,6 @@
public class Cataloging extends Record {
public Cataloging() {

fieldSelectorByLabel.put("Identification Number", "csc-object-identification-object-number");
fieldSelectorByLabel.put("Object Name", "csc-object-identification-object-name");
fieldSelectorByLabel.put("Title", "csc-object-identification-object-title");
fieldSelectorByLabel.put("Copy Number", "csc-object-description-copy-number");
fieldSelectorByLabel.put("Edition Number", "csc-object-description-edition-number");
fieldSelectorByLabel.put("Inscription Method", "csc-object-description-inscription-content-method"); // Textual
fieldSelectorByLabel.put("Inscription Method", "csc-object-description-inscription-description-method"); // Non-Textual
fieldSelectorByLabel.put("Material", "csc-object-description-material");
fieldSelectorByLabel.put("Style", "csc-object-description-style");
fieldSelectorByLabel.put("Production Date", "csc-objectProductionDateGroup-objectProductionDate"); // Will have to fix all date fields eventually
fieldSelectorByLabel.put("Production people", "csc-object-production-people");
fieldSelectorByLabel.put("Production place", "csc-object-production-place");
fieldSelectorByLabel.put("Technique", "csc-object-production-technique");
fieldSelectorByLabel.put("Field collection event name", "csc-collection-object-fieldColEventName");
fieldSelectorByLabel.put("Price - value", "csc-object-history-association-exchange-price-value");
fieldSelectorByLabel.put("Number of Objects", "csc-object-identification-number-objects");
fieldSelectorByLabel.put("Value", "csc-dimension-value");



xpathMap.put("Inscriber Search" ,"//*[@id=\".csc-collection-object-nonTextualInscriptionGroup\"]/div/div[1]/div/div[2]/input[2]");
xpathMap.put("Inscriber" ,"//*[@id=\".csc-collection-object-nonTextualInscriptionGroup\"]/div[2]/div[2]/div[1]/div[1]/div[2]/input[2]"); // Non-Textual Inscription Inscriber
xpathMap.put("Inscriber" ,"//*[@id=\".csc-collection-object-textualInscriptionGroup\"]/div[2]/div[2]/div[1]/div[1]/div[2]/input[2]"); // Textual Inscription Inscriber
xpathMap.put("Production organization Search" ,"//*[@id=\".csc-collection-object-objectProductionOrganizationGroup\"]/input[2]");
xpathMap.put("Production organization" ,"//*[@id=\"repeat::-14\"]/td[2]/input[2]");
xpathMap.put("Production person Search" ,"//*[@id=\".csc-collection-object-objectProductionPersonGroup\"]/input[2]");
xpathMap.put("Production person" ,"//*[@id=\"repeat::-12\"]/td[2]/input[2]");



dropDownMap.put("Collection" , "csc-object-identification-collection");
dropDownMap.put("Form" , "csc-object-description-form");
dropDownMap.put("Object Component Name" , "csc-object-description-object-component-name");
Expand All @@ -43,6 +13,37 @@ public Cataloging() {
dropDownMap.put("Sex" , "csc-object-description-sex");
dropDownMap.put("Technical Attribute" , "csc-object-description-technical-attribute");

fieldSelectorByLabel.put("Brief Description", "csc-object-identification-brief-description");
fieldSelectorByLabel.put("Copy Number", "csc-object-description-copy-number");
fieldSelectorByLabel.put("Distinguishing Features", "csc-object-identification-distinguishing-features");
fieldSelectorByLabel.put("Edition Number", "csc-object-description-edition-number");
fieldSelectorByLabel.put("Field collection event name", "csc-collection-object-fieldColEventName");
fieldSelectorByLabel.put("Identification Number", "csc-object-identification-object-number");
fieldSelectorByLabel.put("Inscription Method Search", "csc-object-description-inscription-description-method");
fieldSelectorByLabel.put("Material", "csc-object-description-material");
fieldSelectorByLabel.put("Non-Textual Inscription Method", "csc-object-description-inscription-description-method"); // Non-Textual
fieldSelectorByLabel.put("Object Name", "csc-object-identification-object-name");
fieldSelectorByLabel.put("Production Date", "csc-objectProductionDateGroup-objectProductionDate"); // Will have to fix all date fields eventually
fieldSelectorByLabel.put("Production people", "csc-object-production-people");
fieldSelectorByLabel.put("Production place", "csc-object-production-place");
fieldSelectorByLabel.put("Style", "csc-object-description-style");
fieldSelectorByLabel.put("Technique", "csc-object-production-technique");
fieldSelectorByLabel.put("Textual Inscription Method", "csc-object-description-inscription-content-method"); // Textual
fieldSelectorByLabel.put("Title", "csc-object-identification-object-title");

xpathMap.put("Earliest/Single Production Date Day", "//*[@id=\"all-content\"]/div/div/div/div/div/div[2]/div[2]/div/div[3]/div[3]/div[2]/div/div/div/div[2]/div/ul/li/div/div/div[2]/div/div/table/tbody/tr/td[4]/input");
xpathMap.put("Earliest/Single Production Date Month", "//*[@id=\"all-content\"]/div/div/div/div/div/div[2]/div[2]/div/div[3]/div[3]/div[2]/div/div/div/div[2]/div/ul/li/div/div/div[2]/div/div/table/tbody/tr/td[3]/input");
xpathMap.put("Earliest/Single Production Date Year", "//*[@id=\"all-content\"]/div/div/div/div/div/div[2]/div[2]/div/div[3]/div[3]/div[2]/div/div/div/div[2]/div/ul/li/div/div/div[2]/div/div/table/tbody/tr/td[2]/input");
xpathMap.put("Inscriber Search", "//*[@id=\".csc-collection-object-nonTextualInscriptionGroup\"]/div/div[1]/div/div[2]/input[2]");
xpathMap.put("Non-Textual Inscriber", "//*[@id=\".csc-collection-object-nonTextualInscriptionGroup\"]/div[2]/div[2]/div[1]/div[1]/div[2]/input[2]"); // Non-Textual Inscription Inscriber
xpathMap.put("Textual Inscriber", "//*[@id=\".csc-collection-object-textualInscriptionGroup\"]/div[2]/div[2]/div[1]/div[1]/div[2]/input[2]"); // Textual Inscription Inscriber
xpathMap.put("Latest Production Date Day", "//*[@id=\"all-content\"]/div/div/div/div/div/div[2]/div[2]/div/div[3]/div[3]/div[2]/div/div/div/div[2]/div/ul/li/div/div/div[2]/div/div/table/tbody/tr[2]/td[4]/input");
xpathMap.put("Latest Production Date Month", "//*[@id=\"all-content\"]/div/div/div/div/div/div[2]/div[2]/div/div[3]/div[3]/div[2]/div/div/div/div[2]/div/ul/li/div/div/div[2]/div/div/table/tbody/tr[2]/td[3]/input");
xpathMap.put("Latest Production Date Year", "//*[@id=\"all-content\"]/div/div/div/div/div/div[2]/div[2]/div/div[3]/div[3]/div[2]/div/div/div/div[2]/div/ul/li/div/div/div[2]/div/div/table/tbody/tr[2]/td[2]/input");
xpathMap.put("Production organization Search", "//*[@id=\".csc-collection-object-objectProductionOrganizationGroup\"]/input[2]");
xpathMap.put("Production organization", "//*[@id=\"repeat::-14\"]/td[2]/input[2]");
xpathMap.put("Production person Search", "//*[@id=\".csc-collection-object-objectProductionPersonGroup\"]/input[2]");
xpathMap.put("Production person", "//*[@id=\"repeat::-12\"]/td[2]/input[2]");

}
}
10 changes: 7 additions & 3 deletions src/test/java/org/collectionspace/qa/records/Citation.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ public class Citation extends Record {

public Citation() {

dropDownMap.put("Language", "csc-citationAuthority-termLanguage");
dropDownMap.put("Status", "csc-citationAuthority-termStatus");
dropDownMap.put("Term Type", "csc-citationAuthority-termType");
fieldSelectorByLabel.put("Earliest Modified Date", "csc-collection-object-updatedAtStart");
fieldSelectorByLabel.put("Latest Modified Date", "csc-collection-object-updatedAtEnd");
fieldSelectorByLabel.put("Record last modified by", "csc-collection-object-updatedBy");

requiredMap.put("csc-citationAuthority-termDisplayName", "A citation like no other");

// ----- Start of entries generated by an automated script -----
Expand All @@ -27,7 +34,6 @@ public Citation() {
fieldSelectorByLabel.put("Formatted Display Name", "csc-citationAuthority-termFormattedDisplayName");
fieldSelectorByLabel.put("Full Citation", "csc-citationAuthority-termFullCitation");
fieldSelectorByLabel.put("Issue", "csc-citationAuthority-termIssue");
fieldSelectorByLabel.put("Language", "csc-citationAuthority-termLanguage");
fieldSelectorByLabel.put("Narrower Context", "csc-hierarchy-narrowerContext");
fieldSelectorByLabel.put("Note", "csc-citation-note");
fieldSelectorByLabel.put("Object component type", "csc-hierarchy-narrowerContextType");
Expand All @@ -48,11 +54,9 @@ public Citation() {
fieldSelectorByLabel.put("Source Detail", "csc-citationAuthority-termSourceDetail");
fieldSelectorByLabel.put("Source ID", "csc-citationAuthority-termSourceID");
fieldSelectorByLabel.put("Source Note", "csc-citationAuthority-termSourceNote");
fieldSelectorByLabel.put("Status", "csc-citationAuthority-termStatus");
fieldSelectorByLabel.put("Subtitle", "csc-citationAuthority-termSubTitle");
fieldSelectorByLabel.put("Term", "csc-citationAuthority-termName");
fieldSelectorByLabel.put("Term Flag", "csc-citationAuthority-termFlag");
fieldSelectorByLabel.put("Term Type", "csc-citationAuthority-termType");
fieldSelectorByLabel.put("Title", "csc-citationAuthority-termTitle");
fieldSelectorByLabel.put("Type", "csc-citation-relationType");
fieldSelectorByLabel.put("Type", "csc-citation-type");
Expand Down
12 changes: 8 additions & 4 deletions src/test/java/org/collectionspace/qa/records/Concept.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ public class Concept extends Record {
public Concept() {

requiredMap.put("csc-ConceptAuthority-termDisplayName", "A very concepty concept");
dropDownMap.put("Language", "csc-conceptAuthority-termLanguage");
dropDownMap.put("Status", "csc-conceptAuthority-termStatus");
fieldSelectorByLabel.put("Record last modified by","csc-concept-updatedBy");
fieldSelectorByLabel.put("Earliest Modified Date","csc-concept-updatedAtStart");

// ----- Start of entries generated by an automated script -----
//
Expand All @@ -27,7 +31,7 @@ public Concept() {
fieldSelectorByLabel.put("Equivalent Context", "csc-hierarchy-equivalentContexts");
fieldSelectorByLabel.put("Formatted Display Name", "csc-conceptAuthority-termFormattedDisplayName");
fieldSelectorByLabel.put("Historical Flag", "csc-conceptAuthority-historicalStatus");
fieldSelectorByLabel.put("Language", "csc-conceptAuthority-termLanguage");
// fieldSelectorByLabel.put("Language", "csc-conceptAuthority-termLanguage");
fieldSelectorByLabel.put("Narrower Context", "csc-hierarchy-narrowerContext");
fieldSelectorByLabel.put("Object component type", "csc-hierarchy-narrowerContextType");
fieldSelectorByLabel.put("Pref for Lang", "csc-conceptAuthority-termPrefForLang");
Expand All @@ -40,7 +44,7 @@ public Concept() {
fieldSelectorByLabel.put("Source Detail", "csc-conceptAuthority-termSourceDetail");
fieldSelectorByLabel.put("Source ID", "csc-conceptAuthority-termSourceID");
fieldSelectorByLabel.put("Source Note", "csc-conceptAuthority-termSourceNote");
fieldSelectorByLabel.put("Status", "csc-conceptAuthority-termStatus");
// fieldSelectorByLabel.put("Status", "csc-conceptAuthority-termStatus");
fieldSelectorByLabel.put("Term", "csc-conceptAuthority-termName");
fieldSelectorByLabel.put("Term Flag", "csc-conceptAuthority-termFlag");
fieldSelectorByLabel.put("Term Type", "csc-conceptAuthority-termType");
Expand Down Expand Up @@ -74,7 +78,7 @@ public Concept() {
// Not found: text label for message key 'conceptAuthority-conceptTermGroupLabel'
// Not found: text label for message key 'conceptAuthority-termInformationLabel'

// ----- End of entries generated by an automated script -----
// ----- End of entries generated by an automated script -----

}
}
Loading