Actions
Bug #26390
closedReact Snapshot test errors
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
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)
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/8026 added
Updated by Jonathon Turel over 5 years ago
- Status changed from Ready For Testing to Duplicate
- Target version set to Katello 3.12.0
- Triaged changed from No to Yes
Updated by Jonathon Turel over 5 years ago
- Is duplicate of Refactor #25912: Migrate js test-helpers to npm react-redux-test-utils added
Actions