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 BacaReferences:
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.
- Access through Menu item(s):
- All choices for canned views are present in menu
- All choices for Threaded related views are present in menu
- All choices for customized/added views are present in menu
- News-only choices are disabled in mail accounts, appropriately
enabled in news
- Watch Threads with Unread
- Ignored Threads (toggle, not a full view)
- Mnemonic, keyboard access
- Menu items not accessible at server level
- Access through Views dropdown on the Search Toolbar
- All choices for canned views are present in menu
- All choices for Threaded related views are present in menu
- All choices for customized/added views are present in menu
- News-only choices are disabled in mail accounts, appropriately
enabled in news
- Watch Threads with Unread
- Ignored Threads (toggle, not a full view)
- Mnemonic, keyboard access
- Not available at account/server level
- Abiliy to hide the Views dropdown through main prefs dialog - Futured for another release
- Customize/Messages Views list and UI :
- Accessible via menu item or dropdown "Customize"
- Views list
- lists all default views
- lists any customized views you configured
- New button
- Edit Button
- Move Up/Down button
- Delete Button
- OK/Cancel/Help
- Mnemonic, keyboard access
- Message view setup window
- Should be modal to Message Views dialog
- Should open new/blank dialog with default message view name "Untitled"
- Should open with default of one criteria line with More/+ enabled and Fewer/- disabled
- After adding criteria line, More enabled and Fewer enabled
- Can switch AND/OR scope -- All/Any
- Appropriate criteria list should be available in critieria dropdowns for the selected account type (criteria not spec'd yet)
- Mnemonic, keyboard access
- Save as View from Advanced Search Messages - Futured for another release
- Save As Message Search button in advanced search window
- 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 |
- For each default view, do a general check that it shows only messages matching the established criteria.
- For each default view, use in each of the account types available:
- IMAP
- POP
- Webmail
- AOL
- News
- For each default view, verify you can switch among views:
- Switched view shows appropriate messages to criteria
- Switch back to All from any other view
- When view switches, selection is preserved unless the message doesn't apply to new view
- When switch to view without current selection, check for reasonable behavior (such as scroll to top of thread pane)
- Switching among views present scrollbars if appropriate in new
view:
- Switch from large/scrollbar view to another scrollbar view
- Switch from a small view with no scrollbar to another small/no scrollbar view
- Switch from populated to empty view
- Switch from large scrollbar view to small/no scroll view
- 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.
- Switch views from both menu and dropdown:
- menu --> menu switch
- menu --> dropdown switch
- dropdown --> dropdown switch
- dropdown -> menu switch
- in each switch, verify both menu and dropdown reflect the proper view
- View is global -- same for all accounts
- Verify view across folders in one account
- Verify view is same across different mail accounts
- Verify view is same across mail to news
- View should persist through exit
- Verify the sorting abilities in each view:
- Views default to flat sort, except for:
- Threads with Unread
- Watched Threads with Unread
- Switch sort in each view
- Sort order should be remembered per folder. It is not saved per view
- Selecting a message view cancels a threaded view
- Selecting a threaded view cancels a message view
- Selecting a threaded view cancels a quick search
- Perform a quick search, select thread column and view drop down should change to All and sort by thread
- Views default to flat sort, except for:
- Get New messages in view
- When new messages received, only those applicable to view are shown (respects view)
- Get messages by manually doing Get Messages
- Get messages via mail notificiation
- Check scrollbar situation when getting mail in each view, i.e. in a small no scrollbar view, newly retrieved messages cause scrollbar to appear
- Get new mail via opening Inbox or folder/group
- Mark messages
- Mark individual message in 3-pane (message pane open)
- Mark individual message in 3-pane (message pane closed)
- Mark from standalone message window
- Mark All read
- Mark multiple selection read/unread
- Marked messages if now inappropriate to view will not be removed from view until refresh/switch views
- Delete a message in each view
- Deletes from 3-pane
- Deletes from standalone
- Moves to next appropriate message
- Redraws in view appropriately, i.e. no blank lines where msg deleted
- Deletes in both threaded and flat sort
- Undo delete in view behaves as you might expect
- Delete multiple selections
- Use various delete controls in views:
- Delete key
- Toolbar Button
- Context menu
- Delete not available in newsgroups, try Cancel (menu only)
- Move messages
- Move message from 3-pane
- Moves from standalone
- Advances to next appropriate message
- Redraws in view appropriately, i.e. no blank lines where msg deleted
- Moves in both threaded and flat sort
- Undo moves in view behaves as you might expect
- Move multiple selections
- Move obeys delete mode of account
- Use move via different methods:
- Drag & Drop
- Main Menu
- Context menu
- File toolbar button
- Note: Move should behave as copy from news
- Navigate through view:
- Within folder/group
- Across folders in same account
- Across accounts
- From 3-pane
- thread pane focus
- message pane focus
- From standalone
- Navigate via different methods:
- Next Unread via button
- Spacebar
- Next message
- shortcut(s)
-
Label
messages in view:
- Change label value on single selection
- Change label on multiple selection
- Change from none to label
- Change from existing label to another label value
- If in Label view, labeled messages if now inappropriate to view will not be removed from view until refresh/switch views
- Make sure label can be done via
- shortcut (0-5)
- menu
- context menu
Threading considerations
- Thread column should be removed from views
- Threading should be available in only these views:
- All
- Threads with Unread
- Watched with Unread
- Ignored Threads (toggle)
- Switch from a threaded view to a view in which threading is unavailable -- should default to date sort
QuickSearch and views:
- Quicksearch should match string to only those messages in the view, not the whole folder.
- Clear Quicksearch results in each view, verify cleared
appropriately
- Clear quicksearch via Backspace
- Clear quicksearch via Clear
- Clear quicksearch via selecting another folder
Junk Mail and Views
- When in Not Junk view, marking message(s) as Junk will not automatically take it from the view
Attachments and Views
- Attachments view will not show on existing 7.01+ profile.
- Attachments will also appear as a new (advanced) search criteria
- Make sure various attachment types are caught by Attachment status view.
- Create a view without attachments and verify messages without attachments do not display
Custom or edited views:
- Views dropdown shouldn't show Customize as a selected view
- Cancel - should reset to previous view
- OK - should reset to previous view
- After adding new -- should select newly added view
- For each of the Default editable mailviews, verify you can Edit the
existing criteria:
- After selecting the view and clicking edit, the Message Views setup dialog opens to the selected view
- Make sure all criteria options are selectable
- Change a sampling of all criteria and values:
- Name
- Single criteria view
- multiple criteria view
- AND/OR
- edit existing criteria lines
- add new criteria lines
- On OK, verify the view still appears in the views list dialog, same placement in list
- Verify the changes are saved through OK of the mail views list dialog
- Verify the edited view still appears in the Views menu and dropdown
- Verify the edited view can be switched to and from and the view matches appropriate messages to the edited view
- Exit and return and make sure edited values still present and view is functional.
- A "Reset to Default" for the canned views if edited/deleted should be available
- Add a New custom view
- After selecting the view and clicking New, the Message Views setup dialog opens to a new untitled view
- Make sure all criteria options are selectable
- Create new views using a sampling of all criteria and values:
- Name
- single criteria view
- multiple criteria view
- AND/OR
- edit existing criteria lines
- add new criteria lines
- On OK, verify the view appears in the views list -- Add to bottom
- Verify the changes are saved through OK of the mail views list dialog
- Verify the new view appears in the Views menu and dropdown
- 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.
- Verify the new view can be switched to and from and the view matches appropriate messages to the specified criteria
- Exit and return and make sure new view is still present, values are same as when added and view is functional.
- Add multiple custom views in one dialog session, verify all persist in session and through exit.
- Verify you can move a view in the list via MoveUp/Down:
- Custom View
- Default View
- Move the top view in list, verify Move Up is disabled
- Move last view in list, verify Move Down is disabled
- Move views in middle of list, both UP/Down are enabled
- After moving in list it should reflect same in Dropdown/menu placement
- Delete a view:
- Select a view in message views, Click Delete.
- Should there be some confirmation dialog to be consistent
with Filter UI.
- Cancel doesn't delete
- OK does
- Deletes the correct and only the selected view from the views list
- Deletes a one view for a single selection
- Deletes multilple views for multiple selection (via control or shift key)
- After OK delete, there should be no selection in list and Delete should be disabled.
- Should there be some confirmation dialog to be consistent
with Filter UI.
- Negative case: Delete the view you were in. Make sure view resets to All and nothing adverse happens.
- Select a view in message views, Click Delete.
- Mix operations Add/Edit/Delete views, verify all take:
- Add a view, edit another view
- Add a view, edit same view
- Add a view, delete another view
- Add a view and delete it
- Add some views, edit some different views, delete a view
- Do the above in one dialog session
- Do the above in separate sessions
- Verify all changes/additions/deletions are saved appropriately through OK
- Verify all changes/additions/deletions are saved through exit.
- Customized views utilizing Custom
Headers:
- Add a new view to use an existing custom header
- verify existing custom header(s) appears as a choice at the bottom of the view criteria list
- select a custom header, commit changes to Views and verify changes stick
- verify view matches items appropriately to custom header specified
- Add a new view to use a new custom header -- Add it through
views setup ui
- verifyyou can launch custom header ui from bottom of view criteria list
- add a new custom header, select it as a View criteria, commit changes to Views and verify changes stick
- verify view matches items appropriately to custom header specified
- Add a new view to use an existing custom header
Using Views and Offline usage
- Switching to various views offline behaves appropriately
- Switching view persists when going online, and through exit
- Adding a new custom view while offline persists when going online, and through exit
- Editing an existing custom view while offline - changes persist when going online and through exit
- 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