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

use commonProps and remove dive from ReportEdit tests

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: frontend
    • Labels:
      None

      Description

      The first line of every test of the ReportEdit tests currently looks like this:

      const node = shallow(<ReportEdit report={report} />).dive();
      

      I would like it to look like this:

      const node = shallow(<ReportEdit {...props} />);
      

      because that would be more consistent with how we do it in other tests. The props should contain a mock of the mightFail prop. Maybe we can use the OverviewStore.test as reference

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sebastian.stamm Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: