Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3528

BrowserPresenter deletedItem handling causes exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4.2
    • 5.4.1
    • None
    • None
    • Sprint 7 (Basel)
    • 1

      While developing add and delete resource actions to resources app, i noticed the following case is throwing exception.

      given(user).deletes(item);
      given(action).throwsContentChangedEvent();

      when(browser).refresh();

      then(browser).throwsException();

      This happens because the selected item cannot be found since its deleted in the transaction. Our browserPresenter should be checking if the selected is present / can be handled.

        Acceptance criteria

              ilgun Ilgun Ilgun
              ilgun Ilgun Ilgun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1h
                    1h