You are here: Mozilla MailNews Functional / UI Tests > Address Book/Quick Search
Feature Test Spec: Mail and News Component
Mail and News Component: Address Book/Quick Search
Written by Ninoschka BacaReferences:
UI Specifications: Address Book Specification (http://mozilla.org/mailnews/specs/addressbook/#SearchBar)
A. General UI components:
- Menu item View|Show/Hide|Search bar
      
- hides or shows search bar above results pane when toggled
 - menu item shows checkmark next to menu item when enabled
 
 - Search bar components:
      
- Descriptive/criteria text: "Name or Email contains"
 - text field
 - Clear button which clears search text field and results
 - Advanced button which takes user to the Advanced Directory Search window
 - Tooltip over text field
 
 - Tab order:
      
- accessible by tabbing
 - Tab moves clockwise
 - Shift+tab moves counter clockwise
 - Tab out of QS moves focus to the results pane
 - Shift+tab out of QS moves focus to the directory pane
 - Tab into results pane, down/up arrows should move between entries
 - Tab into card pane should highlight all links/buttons
 - Tab into directory pane, down/up arrows should move between address books and mailing lists
 - Ctrl+Tab moves to next pane (convenient if on a link in the card pane and need to quickly move to next pane)
 
 - Mnemonic access
 - Preferences:
      
- None. No prefs associated with this feature -- maybe in the future to allow criteria options
 
 
B.Initiating searches - Basics:
- When text is typed in the search bar text field, matches display in the results pane
 - When additional text is added the search further refines and displays appropriate results in results pane
 - When backspacing the search scope adjusts appropriately and displays matches relative to the text
 - No selection is made in the search/results pane by default
 - Search is done only on the address book selected in the directory pane
 - Search results are displayed using the same sort order as set before the search was intiated
 - "Stop" button is enabled when search a search is in progress
 - Number of matches are displayed in the status bar ("X matches found")
 
C.Clearing searches - Basics:
- Backspace to beginning of text field
 - Clear button
 - Select another address book
 - When search is cleared, user should be returned to full address book contents
 
D.Operations on search results:
- Properties button
 - Compose button
 - Delete button
 - Double click entry and the card should appear in an edit dialog
 - Drag-n-Drop entry to another address book
 - Show Name As
      
- Results should display initially in same order as in the results pane
 - Show Name As should be available and function correctly in results
 - Change Show Name As option - should display results in new format (First, Last, Display Name)
 - Sort results, then search again, should display results in the format currently selected
 
 - Sort
      
- Results should display initially in same sort as in the results pane
 - Sort should be available and function correctly in results
 - Sort results, then search again - should sort according to most recent sort specified
 
 - Change columns
 - Show/Hide card summary pane (aka card pane)
 - Collapse/Expand address book in directory pane
 
E.Returning to directory pane:
- View|Show Name As setting should apply as before the search
      
- First Name
 - Last Name
 - Display Name
 
 - View|Sort setting should apply as before the search
      
- Name - Work Phone options
 - Ascending/Descending
 
 - When returned to folder view, all appropriate commands should be
    enabled and usable:
      
- Toolbars
 - Menus
 - Context menus
 - Shortcuts
 
 
F.Criteria tests:
- matching first name:
      
- various length strings
 - special characters
 - spaces
 
 - matching last name:
      
- various length strings
 - special characters
 - spaces
 
 - matching display name:
      
- long name
 - partial name
 - special characters
 - spaces
 
 - matching email address
      
- long address
 - partial address
 - weird email addresses
 
 
G.Content tests - check display when selecting through links/buttons in the card pane
- web pages
 - links
 - Get Map button
 
H.Varied/Address Books
- Make sure QuickSearch is usable with various address books --
    should work with all types
      
- personal address book
 - collected address book
 - mailing list selected
 - imported address book selected
          
- Comm 4.x
 - Eudora
 - Outlook
 - Outlook Express
 - Text format
              
- csv
 - ldif
 - tab delimited
 - txt
 
 
 
 - Make sure QuickSearch acts appropriately when clearing a search by selecting a list in various address book
 
I.Additional tests:
- Make sure QuickSearch is usable with offline feature:
      
- go offline then initiate search
 - initiate search when online, go offline