Manual Integration Test: Change Context and check resetChanges

DESCRIPTION

Test that resetChanges/hasPendingChanges also work if parent context is changed.

PREPARATION

To check console errors open the developer tools before starting the application and check with each step, that there are no errors and warnings.

Testing with mock data

Start the Sales Orders application with following URL (adjust host and port if necessary):

REALIZE and CHECK

  1. Change the note of a Sales Order Line Item
  2. Change the context of the Sales Order Line Items table by selecting a different Sales Order
  3. Press the Refresh button for the Sales Order List
  4. Check: You get a warning about pending changes.
  5. Cancel the warning
  6. Press the Refresh All button in the toolbar
  7. Check: You get a warning about pending changes.
  8. Confirm the warning by pressing the Ok button.
  9. Check: The note of the Sales Order Line Item is reset to the value before.

    Note: Pressing Cancel changes for the Sales Order List table does not reset the changes in Sales Order Line Items, because the group for Sales Order List and Sales Order Details are different and Cancel changes resets changes for a certain group (via the model).