Bug 1690002

Summary: React Snapshot test errors
Product: Red Hat Satellite Reporter: Evgeni Golov <egolov>
Component: OtherAssignee: John Mitsch <jomitsch>
Status: CLOSED NOTABUG QA Contact: Peter Ondrejka <pondrejk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: inecas
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-18 16:53:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Evgeni Golov 2019-03-18 15:04:18 UTC
<pre>
Summary of all failing tests

FAIL webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js

  ● subscriptionTypeFormatter › renders link to a host


    expect(value).toMatchSnapshot()


    Received value does not match stored snapshot "subscriptionTypeFormatter renders link to a host 1".


    - Snapshot

    + Received


    @@ -1,11 +1,10 @@

      <td>

        <span>

          Guests of

           

          <Link

    -       replace={false}

            to="/content_hosts/83/"

          >

            host.example.com

          </Link>

        </span>


      29 |     const formatter = subscriptionTypeFormatter(null, data({ hypervisor: { name: 'host.example.com', id: 83 } }));

      30 | 

    > 31 |     expect(toJson(shallow(formatter))).toMatchSnapshot();

         |                                        ^

      32 |   });

      33 | });

      34 | 


      at toMatchSnapshot (webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js:31:40)

      at tryCatch (node_modules/regenerator-runtime/runtime.js:62:40)

      at GeneratorFunctionPrototype.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:288:22)

      at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (node_modules/regenerator-runtime/runtime.js:114:21)

      at step (webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js:13:191)

      at webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js:13:437

      at Object.<anonymous> (webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionTypeFormatter.test.js:13:99)


</pre>

Comment 1 Evgeni Golov 2019-03-18 15:04:21 UTC
Created from redmine issue https://projects.theforeman.org/issues/26390

Comment 2 Evgeni Golov 2019-03-18 15:04:24 UTC
Upstream bug assigned to jomitsch@redhat.com

Comment 5 Evgeni Golov 2019-03-18 16:53:11 UTC
this seems to have been auto-fixed in react itself :see_no_evil: