From 6b182f515ccd6d8030d9d500bbb700998cb90f69 Mon Sep 17 00:00:00 2001 From: hlm7 Date: Sun, 17 Jul 2011 22:22:17 +0000 Subject: [PATCH] Holly added some menu management tests tothe AddNonPersonThings test suite. --- .../TestMenuManagement.html | 402 ++---------------- .../suites/AddNonPersonThings/suite.html | 55 +-- 2 files changed, 74 insertions(+), 383 deletions(-) diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/TestMenuManagement.html b/utilities/acceptance-tests/suites/AddNonPersonThings/TestMenuManagement.html index 4277c030..50e3d5c6 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/TestMenuManagement.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/TestMenuManagement.html @@ -116,7 +116,7 @@ comment - Validate adding menu item with Activities + Add Activities menu @@ -129,171 +129,21 @@ Add Menu Item - - verifyTextPresent - Name * - - - - verifyTextPresent - Pretty URL * - - - - verifyTextPresent - (Format: / - ie. /people) - - - - verifyTextPresent - Template * - - - - verifyTextPresent - Default - - - - verifyTextPresent - Custom template - - - - verifyTextPresent - Select content type for the associated page * - - - - verifyTextPresent - or Cancel - - - - verifyElementPresent - link=Cancel - - - - verifyTextPresent - * required fields - - - - clickAndWait - link=Cancel - - - - assertTitle - Default Menu - - - - clickAndWait - link=Add menu item - - - - assertTitle - Add Menu Item - - - - click - submit-Add - - - - verifyTextPresent - You must supply a Name - - - - verifyTextPresent - You must supply a Pretty URL - - - - verifyTextPresent - You must supply a Content type - - type menuName Activities - - click - submit-Add - - - - verifyTextPresent - You must supply a Pretty URL - - - - verifyTextPresent - You must supply a Content type - - type prettyUrl /activities - - click - submit-Add - - - - verifyTextPresent - You must supply a Content type - - select selectClassGroup label=activities - - verifyTextPresent - Selected content type for the associated page - - - - verifyTextPresent - activities Change content type - - - - verifyElementPresent - changeContentType - - - - verifyTextPresent - Select content to display * - - - - verifyTextPresent - Only display within my institution - - - - verifyTextPresent - To enable this option, you must first select an institutional internal class for your instance - - - - verifyElementPresent - link=institutional internal class - - clickAndWait submit-Add @@ -605,43 +455,43 @@ - verifyTextPresent - There is currently no Activities content in the system + click + link=Agreement (3) verifyTextPresent - You can add content and manage this site from the Site Administration page. + Agreement verifyElementPresent - link=add content and manage this site - - - - verifyTextPresent - You can browse all of the public content currently in the system using the index page. + link=Primate Elderly Care verifyElementPresent - link=index page - - - - verifyTextPresent - Expecting content? - - - - verifyTextPresent - Try rebuilding the search index. + link=Primate Habitat Research Grant verifyElementPresent - link=rebuilding the search index + link=Primate Survival Planning Grant + + + + click + link=Service (1) + + + + verifyTextPresent + Service + + + + verifyElementPresent + link=Primate Heart Health Clinic @@ -660,43 +510,18 @@ - verifyTextPresent - There is currently no Courses content in the system + click + link=Course (1) verifyTextPresent - You can add content and manage this site from the Site Administration page. + Course verifyElementPresent - link=add content and manage this site - - - - verifyTextPresent - You can browse all of the public content currently in the system using the index page. - - - - verifyElementPresent - link=index page - - - - verifyTextPresent - Expecting content? - - - - verifyTextPresent - Try rebuilding the search index. - - - - verifyElementPresent - link=rebuilding the search index + link=Introduction to Primate Health @@ -715,43 +540,23 @@ - verifyTextPresent - There is currently no Equipment content in the system + click + link=Equipment (2) verifyTextPresent - You can add content and manage this site from the Site Administration page. + Equipment verifyElementPresent - link=add content and manage this site - - - - verifyTextPresent - You can browse all of the public content currently in the system using the index page. + link=Portable Primate Habitat verifyElementPresent - link=index page - - - - verifyTextPresent - Expecting content? - - - - verifyTextPresent - Try rebuilding the search index. - - - - verifyElementPresent - link=rebuilding the search index + link=Primate Feeder @@ -769,149 +574,34 @@ Locations + + click + link=Building (1) + + verifyTextPresent - Locations + Building + + + + verifyElementPresent + link=Jane Memorial Building click - link=Geographic Location (37) + link=Room (1) verifyTextPresent - Geographic Location + Room - comment - Change People menu name - - - - clickAndWait - link=Site Admin - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Menu management - - - - assertTitle - Default Menu - - - - clickAndWait - css=img.edit-individual - - - - assertTitle - Edit Menu Item - - - - type - menuName - People at CU - - - clickAndWait - submit-Edit - - - - assertTitle - Default Menu - - - - clickAndWait - link=People - - - - assertTitle - People at CU - - - - verifyTextPresent - There is currently no People at CU content in the system - - - - comment - Change People menu name back - - - - clickAndWait - link=Site Admin - - - - assertTitle - VIVO Site Administration - - - - clickAndWait - link=Menu management - - - - assertTitle - Default Menu - - - - clickAndWait - css=img.edit-individual - - - - assertTitle - Edit Menu Item - - - - type - menuName - People - - - clickAndWait - submit-Edit - - - - assertTitle - Default Menu - - - - clickAndWait - link=People - - - - assertTitle - People - - - - verifyTextPresent - There is currently no People content in the system + verifyElementPresent + link=Lab Admin Office diff --git a/utilities/acceptance-tests/suites/AddNonPersonThings/suite.html b/utilities/acceptance-tests/suites/AddNonPersonThings/suite.html index 60a3a5b1..3fa11501 100644 --- a/utilities/acceptance-tests/suites/AddNonPersonThings/suite.html +++ b/utilities/acceptance-tests/suites/AddNonPersonThings/suite.html @@ -1,27 +1,28 @@ - - - - - - Test Suite - - - - - - - - - - - - - - - - - - -
Test Suite
CreateLibrarian
CreateOrganization
CreateCourse
CreateActivity
CreateEvent
CreateTopic
CreateEquipment
CreateLocation
VerifyAllThingsSearchable
CheckPublicView
CheckIndexView
CheckBrowseOptions
DeleteIndexStuff
DeleteOtherStuff
- - + + + + + + Test Suite + + + + + + + + + + + + + + + + + + + +
Test Suite
CreateLibrarian
CreateOrganization
CreateCourse
CreateActivity
CreateEvent
CreateTopic
CreateEquipment
CreateLocation
VerifyAllThingsSearchable
CheckPublicView
CheckIndexView
CheckBrowseOptions
TestMenuManagement
DeleteIndexStuff
DeleteOtherStuff
+ +