testVocabulariesManagement
open restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium testVocabulariesManagement
open logout
open
type username Administrator
type password Administrator
clickAndWait Submit
clickAndWait link=Vocabularies
assertTitle Nuxeo DM - Vocabularies
verifyElementPresent link=continent
verifyElementPresent link=country
verifyElementPresent link=topic
verifyElementPresent link=subtopic
verifyElementPresent link=subject
verifyElementPresent link=sort_order
verifyElementPresent link=search_operators
verifyElementPresent link=predicates
verifyElementPresent link=inverse_predicates
clickAndWait link=continent
assertTitle Nuxeo DM - continent
verifyText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_id africa
verifyText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_label label.directories.continent.africa
verifyText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_obsolete_no No
verifyText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_order 10,000,000
verifyElementPresent //input[@id="viewDirectoryEntries:nxl_vocabulary:nxl_vocabulary_editButton"]
verifyElementPresent //input[@id="viewDirectoryEntries:nxl_vocabulary:nxl_vocabulary_deleteButton"]
verifyText viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_id_1 antarctica
verifyText viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_label_1 label.directories.continent.antarctica
verifyText viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_obsolete_1_no No
verifyText viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_order_1 10,000,000
verifyElementPresent //input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_editButton"]
verifyElementPresent //input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_deleteButton"]
clickAndWait //input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_editButton"]
verifyText editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_id antarctica
verifyValue editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_order 10,000,000
verifyValue editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_label label.directories.continent.antarctica
type editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_label label.directories.continent.antarctica.modified
clickAndWait //input[@value="Save"]
verifyTextPresent Vocabulary entry edited
verifyText viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_label_1 label.directories.continent.antarctica.modified
clickAndWait //input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_editButton"]
type editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_label label.directories.continent.antarctica
clickAndWait //input[@value="Save"]
verifyText viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_label_1 label.directories.continent.antarctica
verifyElementPresent link=Add a new vocabulary entry
clickAndWait link=Add a new vocabulary entry
type addEntryForm:nxl_vocabulary:nxw_vocabulary_id africa
clickAndWait //input[@value="Create"]
verifyTextPresent The identifier already exists
type addEntryForm:nxl_vocabulary:nxw_vocabulary_id aatlantide
type addEntryForm:nxl_vocabulary:nxw_vocabulary_label label.continent.atlantide
click addEntryForm:nxl_vocabulary:nxw_vocabulary_obsolete_checkbox:1
clickAndWait //input[@value="Create"]
verifyTextPresent Vocabulary entry added
assertText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_id aatlantide
assertText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_label label.continent.atlantide
assertText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_obsolete_yes Yes
assertText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_order 10,000,000
clickAndWait //input[@id="viewDirectoryEntries:nxl_vocabulary:nxl_vocabulary_deleteButton"]
assertConfirmation Delete selected vocabulary entry?
verifyTextPresent Vocabulary entry deleted
assertText viewDirectoryEntries:nxl_vocabulary:nxw_vocabulary_id africa
clickAndWait //input[@id="viewDirectoryEntries:nxl_vocabulary:nxl_vocabulary_deleteButton"]
assertConfirmation Delete selected vocabulary entry?
verifyTextPresent This entry is referenced in another vocabulary
clickAndWait link=Back to the list
assertTitle Nuxeo DM - Vocabularies
open logout