Feature Testspec
Project: MachV/MozillaMail and News component
Search in 3-pane, a.k.a. QuickSearch
Written by: Laurel Carlson
Last Modified :
06/19/02 various cases added/updated
12/04/01 draft for machv
References:
QuickSearch UI spec:         http://www.mozilla.org/mailnews/specs/qksearch/ 
    Main Search Messages UI Spec:         http://www.mozilla.org/mailnews/specs/search/
    
- General UI components:
- Menu item View|Show/Hide|Search bar
- hides or shows search bar above thread pane when toggled
- menu item shows checkmark next to menu item when enabled
- menu item shouldn't be in standalone message window
- should be available in main window if message pane closed
 
- Search bar components:
- Descriptive/criteria text : "Subject or sender contains"
 
- text field
- Advanced button which takes user to the Search Messages UI
- Clear button which clears search text field and results
- Tooltip over text field ??
 
- Search bar doesn't display when an account level is selected in folder pane
- Search bar should be available in main window when message pane open
or closed
 
- Tab order:
- accessible by tabbing
- tab order clockwise in 3- pane, so tab out of QS would be to thread pane
- Mnemonic access
- Preferences:
- None. No prefs associated with this feature -- maybe in the future to allow criteria options
- Initiating searches - Basics:
- When text is typed in the search bar text field, matches display in the thread pane
- When additional text is added the search further refines and
displays    appropriate results in thread  pane
 
- When backspacing the search scope adjusts appropriately and displays matches relative to the text
- No selection is made in the search/thread pane by default
 
- Search is done only on the folder or group selected in the folder pane
- Search results are displayed using the same sort order as set before the search was intiated
- initiate from various flat sort methods
- initiate from threaded view -- threading not implemented in results
view, results should default to date sort.
 
- Number of matches are displayed in the status bar
- Clearing searches - Basics:
- Backspace to beginning of text field
- Clear button
- Select another folder
- When search is cleared, user should be returned to full folder contents
- Select an account level - various accounts
- Selection made in results should be preserved in folder view, if applicable:
- return to full folder view (View All Messages) - selection made in results should be preserved
- return to folder view where view is set to other than All, but message should be in the view - selection made in results should be preserved
- selection made in the results is read and some messages in thread are unread, return to folder view set to Threads with Unread
- selection made in results is part of watched thread with unread
items, return to Watched view
 
- return to folder view where view is set to other than All, but message should NOT be in the view - selection made in results should not show
- selection made in results is read, return to folder view set to Unread
- selection made in results is read and all members of the thread
are read, return to folder view set to Threads with Unread
 
- no selection was made in results - no selection should appear when returning to folder view
- Operations on search results :
- Mark/read - should reflect immediately in search results and carry to folder view when search cleared
- Open result to standalone window
- Reply
- Forward
- Label
 
- Delete
- Delete single message selection
- Delete multiple selection
- Delete enough message causing scrollbar to disappear and return to folder view -- ref bug 139845
- Delete and Undo -- ref bug
- Undo from results
- Undo after returning to folder view
 
- File
- Move
- Copy
- Drag & Drop -- should be available
- File enough messages from results causing scrollbar to disappear and
return to folder view -- ref 139845
 
- Undo file operation
- Undo from results
- Undo after returning to folder view
 
- Sort
- Results should display initially in same sort as in folder view
- initiate from various flat sort methods
- initiate from threaded view -- threading not implemented in results view, results should default to date sort
- Sort should be available and function correctly in results
- Sort results, then search again - should sort according to most recent sort specified
- Sort results, then clear should return to full folder view in the
most recent sort specified
 
- Navigate
- Next Unread
- try when there are unread messages within the search results view
- try when there are no unread messages within the search results view, but there are unread messages in the full folder view
- Cross folder navigation
- is available only if when there are no more unread messages in
folder (either in results view or full folder view)
 
- Next Unread Thread -- should be unavailable
 
- Columns
- change/reorder columns
- no thread column should be available in search mode
 
- Views|Messages changes:
- Should not be able to change view in results? Bug 148001
- See bug  107000 Results should match from folder's view setting, so no matches should be shown which weren't available in the view:
- All
- Unread only
- Threads with unread
- Watched (news only)
- All with Ignored (news only)
 
- Change Header views
- All
- Brief
- Normal
- Show/Hide message pane
- Collapse/Expand:
- folder structure
- account structure
- Appropriate toolbar buttons should be available in results when a message is selected:
- selection is made before scrolling
- selection is made after scrolling -- ref bug 134893
- Get Messages while in search results should add appropriate messages (which match search criteria) to results view
- Via Get Messages
- Via Biff
- in search results initiated from various folder View settings
- in search results sorted in various ways
 
- Returning to folder view:
- When returned to folder view, selection should be maintained if the selection is in set View for folder
- single selection
- multiple selection
 
- When returned to folder view, the same View|Messages setting should apply as before the search
- Threaded: check for proper threading after returning from search
- Check collapsed vs. expanded threads 
 
- Unread: check that only unread messages are present
- Threads with Unread:  check that only threads having unread
 
- When returned to folder view, all appropriate commands should be enabled and usable:
- Toolbars
- Menus
- Context menus
- Shortcuts
- When returned to folder view, changes in message state done in search results mode should be reflected in the folder view:
- Read/Unread state
- Replied/Forwarded
- Deleted
- Undo
- Label
 
- Flag
- Watched - (news only)
- Ignored (news only)
- Criteria tests:
- matching subject:
- various length strings
- special characters
- spaces
- matching sender:
- Display Name
- long name
- partial name
- spaces
- special characters
 
- email address
- long address
- partial address
- weird email addresses
- Content tests - check display when selecting through results pane and returning to folder view with various message content
- web pages
- images
- other attachments
- Varied/Multiple Accounts:
- Make sure QuickSearch is usable with various account types -- should work with all types
- mail - POP
- mail - Local Folders
- mail - IMAP
- news
- Webmail (Netscape only)
- AOL (Netscape only)
- Make sure QuickSearch acts appropriately when clearing a search by selecting folder in various accounts
- Make sure QuickSearch acts appropriately when clearing a search  by
selection in an account which pops up a login prompt (not yet logged in)
 
- Additional tests:
- Make sure QuickSearch is usable with offline feature:
- go offline then initiate search while offline, return to view when offline
- initiate search when online, return to view while offline
- message icon for offline preserved from folder view to search results and back (bug 67359, not yet implemented)