Skip to content

Window management test plan

jhou-pro edited this page Sep 3, 2019 · 21 revisions

Closing masters

As part of issues #916 and #1078 we have defined standard rules to closing dialogs. Here we have short wiki page to test these rules. These rules should be tested for both simple masters and compound master's main views and for standard edit action.

  1. Not persistent

    1. Close -- closes dialog
    2. Cancel -- refreshes item and closes dialog
  2. Persistent

    1. New (modified or not)
      1. Close -- user is warned to press Save or Cancel.
      2. Cancel -- refreshes item and closes dialog
    2. Persisted
      1. Modified
        1. Close -- user is warned to press Save or Cancel.
        2. Cancel -- refreshes item
      2. Unmodified
        1. Close -- closes dialog
        2. Cancel -- refreshes item

For sequential edit (only Persistent and Persisted are applicable, both modified and unmodified):

  1. Next -- goes to next item without any warning
  2. Cancel -- refreshes item and closes dialog

Successful saving

  1. New (close dialog by default)
    1. Not persistent -- closes dialog
    2. Persistent and persisted -- closes dialog
    3. Persistent, not persisted and continuation -- closes dialog
    4. Otherwise, aka "continuous creation" -- leaves dialog open
  2. Edit (leave open by default, aka EntityNavigationMaster #1055 and sequential edit) -- leaves dialog open

Exception for rule 1.i.: Customise columns dialog.

Exception for rule 1.ii.: compound master's main view.

Exception for rule 2.: other edit actions except EntityNavigationMaster.

Cascading windows

As part of issue #638 we have defined standard rules to closing cascading dialogs.

Close dialog =

  1. Perform Close dialog on child
  2. If child was not able to close, then
    1. Restore minimised one
    2. Center it
    3. Focus first input, if it has no children
  3. Repeat steps 1. and 2. until all children will be processed
  4. Close dialog if all children have been closed.
Clone this wiki locally