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

Test Context#resetChanges for Sales Orders

  1. Press the More button in the Sales Orders table.
  2. Select the 3rd Sales Order.
  3. Change the note of the selected Sales Order (in the table row cell).
  4. Select the 4th Sales Order.
  5. Change the note of the selected Sales Order.
  6. Press the Reset changes for selected sales order Button.
  7. Check: That the note in the 4th Sales Order only is restored.
  8. Select the 5th Sales Order.
  9. Change the note of the selected Sales Order.
  10. Check: That the Undo Button is disabled.
  11. Press on the Delete button in the Sales Orders table.
  12. Check: That the deleted Sales Order is gone.
  13. Check: That the Undo Button is enabled.
  14. Select the 5th Sales Order (the Sales Order below the deleted one before).
  15. Press on the Delete button in the Sales Orders table.
  16. Check: That the deleted Sales Order is gone.
  17. Press on the Undo button in the Sales Orders table.
  18. Check: That the last deleted Sales Order is restored.
  19. Press on the Undo button in the Sales Orders table.
  20. Check: That the first deleted Sales Order is restored with its initial value.
  21. Check: That the Undo Button is disabled.
  22. Press the Cancel sales order list changes button.
  23. Check: That the note for the first changed Sales Order also is restored.

Changes in dependent bindings, change sales order context

  1. Create a new Sales Order Line Item.
  2. Change the Sales Order note in the Sales Order Details
  3. Delete a Sales Order Line Item.
  4. Change the context of the Sales Order Line Items table by selecting a different Sales Order.

Check hasPendingChanges via refresh

  1. Press the Refresh button for the Sales Order List.
  2. Check: You get a warning about pending changes.
  3. Cancel the warning.

Check that refresh of an unchanged sales order is allowed

  1. Press the Refresh selected sales order button.
  2. Check: You get NO warning about pending changes.
  3. Select the previously changed sales order again.
  4. Press the Refresh selected sales order button.
  5. Check: You get a warning about pending changes.
  6. Cancel the warning.
  7. Press the Reset changes for selected sales order button.
  8. Press the Refresh selected sales order button.
  9. Check: You got no warning about pending changes.

Check Reset all

  1. Change the note of a Sales Order Line Item.
  2. Press the Refresh all button in the toolbar.
  3. Check: You get a warning about pending changes.
  4. Confirm the warning by pressing the Ok button.
  5. 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).

Delete a Business Partner

  1. Select a Sales Order
  2. Within the Sales Order Details press the Delete business partner button (only enabled w/o realOData)
  3. Check: That all Business Partner details are gone.

Test value help with "ValueListRelevantQualifiers" annotation

  1. Select a sales order with "SAP" as the Business Partner
  2. Click on the Value Help button for the Product ID in the first row of the Sales Order Line Items table.
  3. Check: The title of the Value Help is "Value Help: Product ID (Additional)".
  4. Close the Value Help dialog.
  5. Select another sales order without "SAP" as the Business Partner
  6. Click on the Value Help button for the Product ID in the first row of the Sales Order Line Items table.
  7. Check: The title of the Value Help is "Value Help: H_EPM_PR_SH_Set".
  8. Close the Value Help dialog.