You are here: Mozilla MailNews Functional / UI Tests > Message Filters: Prefill Filters
Feature Test Spec: Mail and News Component
Mail and News Component: Message Filters: Prefill Filters
Written by Laurel CarlsonReferences:
Prefill UI spec: http://www.mozilla.org/mailnews/specs/filters/FilterPrefill1.html
Main Filters Messages UI Spec: http://www.mozilla.org/mailnews/specs/filters/
- General UI components:
- Menu item Message|Create Filter
- Should be disabled when in Local Folders (server level, folder or message)
- Should be disabled when in News accounts (server level, folder or message)
- Should be disabled for multiple thread pane selection
- Should be accessible in main mail window when the message pane is closed.
- Envelope header popup menu:
- Should be disabled in Local Folders
- Should be disabled in News accounts
- No message context menu
- Header envelope popup menu item
- No Keyboard Shortcut
- Access via menu mnemonic
- Menu item Message|Create Filter
- Basic tests:
- Launching Create Filter will open to Filter Rules dialog
- Only one Filter Rules dialog can be open at once, if 2nd rules dialog launched should be an alert to user to close the open one and try again
- Filter Name field:
- Rules dialog should prefill name field with email address
of header:
- if launched via header popup, name should be email address of the clicked header
- if launched via main menu item, name should be email address of the From header of selected message
- if launched via context menu, name should be email address of the From header of selected message
- Rules dialog should make unique name if already filter with
same name
- should add instance number and appear like this -- nowhereman@nowhere.com-2 (doesn't do this - bug 112726)
- User can change the Name field
- Rules dialog should prefill name field with email address
of header:
- Criteria prefilled:
- Rules dialog should be prefilled for Sender, Is, <email
address>
- if launched via header popup, criteria should be Sender, Is, <email address of the clicked header> (regardless of whether user clicked on a To, CC, or From header, the filter is created using Sender Is)
- if launched via main menu item, criteria should be Sender, Is, <email address of the From header of selected message>
- if launched via popup menu,criteria should be Sender, Is, <email address of the From header of selected message>
- Should not use Display Name/Pretty Name
- User can change/add criteria fields
- Rules dialog should be prefilled for Sender, Is, <email
address>
- Adding to filter list:
- After selection of filter action and confirm OK, Rules
dialog should close and Message Filters dialog should focus
with new filter appearing in list
- unchanged prefilled filter name should appear
- if user edited filter name, the edited name should appear
- If user Cancels from the filter rules dialog, no new filter should appear in the Message Filters list.
- On confirmation, all regular filter rules alerts apply for
incorrectly entered fields:
- no name specified
- duplicate name specified
- no action specified
- On confirmation, filter should be added to the selected account's filter list.
- User should be able to move the filter up or down in the list as with any other filter
- Filter should be retained in list after confirming OK to Message Filters.
- Filter should be written to rules.dat file in appropriate mail directory for the account selected
- Filter should be retained as confirmed (in list and rules dialog) after exit/restart.
- After selection of filter action and confirm OK, Rules
dialog should close and Message Filters dialog should focus
with new filter appearing in list
- Other:
- Test functionality when filters open in another window:
- other window open to filter rules via prefill command (Create Filter from Message)
- other window open to filter rules via main filter command (Tools|Message Filters)
- other window open to filter list via prefill
- other window open to filter list via main filter command
- other window open with same account selected - make sure both filter commits are added to the account
- other window open with different account selected - make sure filter gets added to correct account