You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



You are here: Mozilla MailNews Functional / UI Tests > Message Views

Feature Test Spec: Mail and News Component

Mail and News Component: Message Views

Written by Laurel Carlson, updated by Ninoschka Baca

References:

UI Specification

Older Views Mailnews Testspec

Bugzillaquery for summary with "views"

UI Components and Access Methods

Verify all the components are present, visually presented according to spec and that all controls/widgets are functional.

  1. Access through Menu item(s):
    1. All choices for canned views are present in menu
    2. All choices for Threaded related views are present in menu
    3. All choices for customized/added views are present in menu
    4. News-only choices are disabled in mail accounts, appropriately enabled in news
      1. Watch Threads with Unread
      2. Ignored Threads (toggle, not a full view)
    5. Mnemonic, keyboard access
    6. Menu items not accessible at server level
  2. Access through Views dropdown on the Search Toolbar
    1. All choices for canned views are present in menu
    2. All choices for Threaded related views are present in menu
    3. All choices for customized/added views are present in menu
    4. News-only choices are disabled in mail accounts, appropriately enabled in news
      1. Watch Threads with Unread
      2. Ignored Threads (toggle, not a full view)
    5. Mnemonic, keyboard access
    6. Not available at account/server level
    7. Abiliy to hide the Views dropdown through main prefs dialog - Futured for another release
  3. Customize/Messages Views list and UI :
    1. Accessible via menu item or dropdown "Customize"
    2. Views list
      1. lists all default views
      2. lists any customized views you configured
      3. New button
      4. Edit Button
      5. Move Up/Down button
      6. Delete Button
      7. OK/Cancel/Help
      8. Mnemonic, keyboard access
    3. Message view setup window
      1. Should be modal to Message Views dialog
      2. Should open new/blank dialog with default message view name "Untitled"
      3. Should open with default of one criteria line with More/+ enabled and Fewer/- disabled
      4. After adding criteria line, More enabled and Fewer enabled
      5. Can switch AND/OR scope -- All/Any
      6. Appropriate criteria list should be available in critieria dropdowns for the selected account type (criteria not spec'd yet)
      7. Mnemonic, keyboard access
  4. Save as View from Advanced Search Messages - Futured for another release
    1. Save As Message Search button in advanced search window
    2. Opens to dialog to name and save the search view

Default or "Out of the box" views basic tests:

List of default Views - check with spec for updates (current spec not in sync with product):

Name Criteria
All All messages
Unread Unread messages
Importance Label, shows only messages matching selected label value
Work Label, shows only messages matching selected label value
Personal Label, shows only messages matching selected label value
To Do Label, shows only messages matching selected label value
Later Label, shows only messages matching selected label value
People I Know People in the Personal Address Book
Recent Mail Less than 1 day
Last 5 Days Last 5 days
Not Junk Messages not classified as junk mail through Junk Mail controls
Has Attachments Show only messages with Attachments
Thread related Views Shown in Views menu & dropdown, different properties than new "mailviews" above
Threads with Unread Not editable. Shows entire thread of those threads having unread messages
Watched Threads with Unread Not editable .News only - shows entire Watched threads having unread messages
Ignored Threads Not editable. News only, toggle to show Ignored threads in All view
  1. For each default view, do a general check that it shows only messages matching the established criteria.
  2. For each default view, use in each of the account types available:
    1. IMAP
    2. POP
    3. Webmail
    4. AOL
    5. News
  3. For each default view, verify you can switch among views:
    1. Switched view shows appropriate messages to criteria
    2. Switch back to All from any other view
    3. When view switches, selection is preserved unless the message doesn't apply to new view
    4. When switch to view without current selection, check for reasonable behavior (such as scroll to top of thread pane)
    5. Switching among views present scrollbars if appropriate in new view:
      1. Switch from large/scrollbar view to another scrollbar view
      2. Switch from a small view with no scrollbar to another small/no scrollbar view
      3. Switch from populated to empty view
      4. Switch from large scrollbar view to small/no scroll view
      5. Switch from scrollbar view to a view which has just over a threadpane's worth, delete or move messages to cause view to have no scrollbar then switch back again. Should draw scrollbar okay.
    6. Switch views from both menu and dropdown:
      1. menu --> menu switch
      2. menu --> dropdown switch
      3. dropdown --> dropdown switch
      4. dropdown -> menu switch
      5. in each switch, verify both menu and dropdown reflect the proper view
  4. View is global -- same for all accounts
    1. Verify view across folders in one account
    2. Verify view is same across different mail accounts
    3. Verify view is same across mail to news
    4. View should persist through exit
  5. Verify the sorting abilities in each view:
    1. Views default to flat sort, except for:
      1. Threads with Unread
      2. Watched Threads with Unread
    2. Switch sort in each view
      1. Sort order should be remembered per folder. It is not saved per view
      2. Selecting a message view cancels a threaded view
      3. Selecting a threaded view cancels a message view
      4. Selecting a threaded view cancels a quick search
      5. Perform a quick search, select thread column and view drop down should change to All and sort by thread
  6. Get New messages in view
    1. When new messages received, only those applicable to view are shown (respects view)
    2. Get messages by manually doing Get Messages
    3. Get messages via mail notificiation
    4. Check scrollbar situation when getting mail in each view, i.e. in a small no scrollbar view, newly retrieved messages cause scrollbar to appear
    5. Get new mail via opening Inbox or folder/group
  7. Mark messages
    1. Mark individual message in 3-pane (message pane open)
    2. Mark individual message in 3-pane (message pane closed)
    3. Mark from standalone message window
    4. Mark All read
    5. Mark multiple selection read/unread
    6. Marked messages if now inappropriate to view will not be removed from view until refresh/switch views
  8. Delete a message in each view
    1. Deletes from 3-pane
    2. Deletes from standalone
    3. Moves to next appropriate message
    4. Redraws in view appropriately, i.e. no blank lines where msg deleted
    5. Deletes in both threaded and flat sort
    6. Undo delete in view behaves as you might expect
    7. Delete multiple selections
    8. Use various delete controls in views:
      1. Delete key
      2. Toolbar Button
      3. Context menu
    9. Delete not available in newsgroups, try Cancel (menu only)
  9. Move messages
    1. Move message from 3-pane
    2. Moves from standalone
    3. Advances to next appropriate message
    4. Redraws in view appropriately, i.e. no blank lines where msg deleted
    5. Moves in both threaded and flat sort
    6. Undo moves in view behaves as you might expect
    7. Move multiple selections
    8. Move obeys delete mode of account
    9. Use move via different methods:
      1. Drag & Drop
      2. Main Menu
      3. Context menu
      4. File toolbar button
    10. Note: Move should behave as copy from news
  10. Navigate through view:
    1. Within folder/group
    2. Across folders in same account
    3. Across accounts
    4. From 3-pane
      1. thread pane focus
      2. message pane focus
    5. From standalone
    6. Navigate via different methods:
      1. Next Unread via button
      2. Spacebar
      3. Next message
      4. shortcut(s)
  11. Label messages in view:
    1. Change label value on single selection
    2. Change label on multiple selection
    3. Change from none to label
    4. Change from existing label to another label value
    5. If in Label view, labeled messages if now inappropriate to view will not be removed from view until refresh/switch views
    6. Make sure label can be done via
      1. shortcut (0-5)
      2. menu
      3. context menu

Threading considerations

  1. Thread column should be removed from views
  2. Threading should be available in only these views:
    1. All
    2. Threads with Unread
    3. Watched with Unread
    4. Ignored Threads (toggle)
  3. Switch from a threaded view to a view in which threading is unavailable -- should default to date sort

QuickSearch and views:

  1. Quicksearch should match string to only those messages in the view, not the whole folder.
  2. Clear Quicksearch results in each view, verify cleared appropriately
    1. Clear quicksearch via Backspace
    2. Clear quicksearch via Clear
    3. Clear quicksearch via selecting another folder

Junk Mail and Views

  1. When in Not Junk view, marking message(s) as Junk will not automatically take it from the view

Attachments and Views

  1. Attachments view will not show on existing 7.01+ profile.
  2. Attachments will also appear as a new (advanced) search criteria
  3. Make sure various attachment types are caught by Attachment status view.
  4. Create a view without attachments and verify messages without attachments do not display

Custom or edited views:

  1. Views dropdown shouldn't show Customize as a selected view
    1. Cancel - should reset to previous view
    2. OK - should reset to previous view
    3. After adding new -- should select newly added view
  2. For each of the Default editable mailviews, verify you can Edit the existing criteria:
    1. After selecting the view and clicking edit, the Message Views setup dialog opens to the selected view
    2. Make sure all criteria options are selectable
    3. Change a sampling of all criteria and values:
      1. Name
      2. Single criteria view
      3. multiple criteria view
      4. AND/OR
      5. edit existing criteria lines
      6. add new criteria lines
    4. On OK, verify the view still appears in the views list dialog, same placement in list
    5. Verify the changes are saved through OK of the mail views list dialog
    6. Verify the edited view still appears in the Views menu and dropdown
    7. Verify the edited view can be switched to and from and the view matches appropriate messages to the edited view
    8. Exit and return and make sure edited values still present and view is functional.
  3. A "Reset to Default" for the canned views if edited/deleted should be available
  4. Add a New custom view
    1. After selecting the view and clicking New, the Message Views setup dialog opens to a new untitled view
    2. Make sure all criteria options are selectable
    3. Create new views using a sampling of all criteria and values:
      1. Name
      2. single criteria view
      3. multiple criteria view
      4. AND/OR
      5. edit existing criteria lines
      6. add new criteria lines
    4. On OK, verify the view appears in the views list -- Add to bottom
    5. Verify the changes are saved through OK of the mail views list dialog
    6. Verify the new view appears in the Views menu and dropdown
    7. Verify if the newly added view is selected, that the messages that match the view display in the main mail window after closing the Custom dialog.
    8. Verify the new view can be switched to and from and the view matches appropriate messages to the specified criteria
    9. Exit and return and make sure new view is still present, values are same as when added and view is functional.
  5. Add multiple custom views in one dialog session, verify all persist in session and through exit.
  6. Verify you can move a view in the list via MoveUp/Down:
    1. Custom View
    2. Default View
    3. Move the top view in list, verify Move Up is disabled
    4. Move last view in list, verify Move Down is disabled
    5. Move views in middle of list, both UP/Down are enabled
  7. After moving in list it should reflect same in Dropdown/menu placement
  8. Delete a view:
    1. Select a view in message views, Click Delete.
      1. Should there be some confirmation dialog to be consistent with Filter UI.
        • Cancel doesn't delete
        • OK does
      2. Deletes the correct and only the selected view from the views list
      3. Deletes a one view for a single selection
      4. Deletes multilple views for multiple selection (via control or shift key)
      5. After OK delete, there should be no selection in list and Delete should be disabled.
    2. Negative case: Delete the view you were in. Make sure view resets to All and nothing adverse happens.
  9. Mix operations Add/Edit/Delete views, verify all take:
    1. Add a view, edit another view
    2. Add a view, edit same view
    3. Add a view, delete another view
    4. Add a view and delete it
    5. Add some views, edit some different views, delete a view
    6. Do the above in one dialog session
    7. Do the above in separate sessions
    8. Verify all changes/additions/deletions are saved appropriately through OK
    9. Verify all changes/additions/deletions are saved through exit.
  10. Customized views utilizing Custom Headers:
    1. Add a new view to use an existing custom header
      1. verify existing custom header(s) appears as a choice at the bottom of the view criteria list
      2. select a custom header, commit changes to Views and verify changes stick
      3. verify view matches items appropriately to custom header specified
    2. Add a new view to use a new custom header -- Add it through views setup ui
      1. verifyyou can launch custom header ui from bottom of view criteria list
      2. add a new custom header, select it as a View criteria, commit changes to Views and verify changes stick
      3. verify view matches items appropriately to custom header specified

Using Views and Offline usage

  1. Switching to various views offline behaves appropriately
  2. Switching view persists when going online, and through exit
  3. Adding a new custom view while offline persists when going online, and through exit
  4. Editing an existing custom view while offline - changes persist when going online and through exit
  5. Deleting an existing view while offline - changes persist when going online and through exit

Other issues:

Related file: mailViews.dat in *.slt directory - per profile