Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-597

Remove warnings & errors from unit tests - not wrapped in act

    • 3
    • True
    • Hide

      As part of removing Enzyme a lot of the errors are being removed. This story should start only after OCMUI-529 and OCMUI-593 are completed and merged.

      Show
      As part of removing Enzyme a lot of the errors are being removed. This story should start only after OCMUI-529 and OCMUI-593 are completed and merged.
    • True
    • ACM Console Sprint 251

      The purpose of this task is to remove any warnings in the console for passing unit tests that indicate that an element is not wrapped in act. Example.

      console.error Warning: An update to Card inside a test was not wrapped in act(...).

      There are currently 805 instances of this warning when the unit tests are run.

      This warning/error is due to RTL test finishing before rendering is complete. This usually requires adding a findBy* or a waitFor statement at the end of the test.

       

            kdoberst Kim Doberstein
            dtaylor@redhat.com David Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: