Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-1471

Report entry is empty when editing already defined alert

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 2.2.0
    • None
    • frontend
    • None

      • given:
        • I create a number report A
        • I create an alert that references report A
        • I save the alert
      • when:
        • I edit the alert
      • then:
        • the report field is empty
      • expected:
        • since I already defined a report for the alert I expected it to show report A in the field

        This is the controller panel for Smart Panels app

            [OPT-1471] Report entry is empty when editing already defined alert

            Works great! Do we want to have a test to make sure the correct report is passed as initialValue to the Typeahead?

            Sebastian Stamm added a comment - Works great! Do we want to have a test to make sure the correct report is passed as initialValue to the Typeahead?

            The test does not actually test whether the report is the initial value. As all reports are passed to the Typeahead and the mock just renders everything as json string, the test would pass even if no initial value is set. I would rather use node.find(Typeahead) and use the toHaveProp assertion to check for the content of a specific attribute

            Sebastian Stamm added a comment - The test does not actually test whether the report is the initial value. As all reports are passed to the Typeahead and the mock just renders everything as json string, the test would pass even if no initial value is set. I would rather use node.find(Typeahead) and use the toHaveProp assertion to check for the content of a specific attribute

              Unassigned Unassigned
              johannes.heinemann Johannes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: