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 Filters: Prefill Filters

Feature Test Spec: Mail and News Component

Mail and News Component: Message Filters: Prefill Filters

Written by Laurel Carlson

References:

Prefill UI spec: http://www.mozilla.org/mailnews/specs/filters/FilterPrefill1.html
Main Filters Messages UI Spec: http://www.mozilla.org/mailnews/specs/filters/

  1. General UI components:
    1. Menu item Message|Create Filter
      1. Should be disabled when in Local Folders (server level, folder or message)
      2. Should be disabled when in News accounts (server level, folder or message)
      3. Should be disabled for multiple thread pane selection
      4. Should be accessible in main mail window when the message pane is closed.
    2. Envelope header popup menu:
      1. Should be disabled in Local Folders
      2. Should be disabled in News accounts
    3. No message context menu
    4. Header envelope popup menu item
    5. No Keyboard Shortcut
    6. Access via menu mnemonic
  2. Basic tests:
    1. Launching Create Filter will open to Filter Rules dialog
    2. 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
    3. Filter Name field:
      1. 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
      2. 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)
      3. User can change the Name field
    4. Criteria prefilled:
      1. 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>
      2. Should not use Display Name/Pretty Name
      3. User can change/add criteria fields
    5. Adding to filter list:
      1. 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
      2. If user Cancels from the filter rules dialog, no new filter should appear in the Message Filters list.
      3. On confirmation, all regular filter rules alerts apply for incorrectly entered fields:
        • no name specified
        • duplicate name specified
        • no action specified
      4. On confirmation, filter should be added to the selected account's filter list.
      5. User should be able to move the filter up or down in the list as with any other filter
      6. Filter should be retained in list after confirming OK to Message Filters.
      7. Filter should be written to rules.dat file in appropriate mail directory for the account selected
      8. Filter should be retained as confirmed (in list and rules dialog) after exit/restart.
    6. Other:
    1. 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