fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Jasmine Tests Blowing Up on Pulling in Newer Fabric Version

Open alxHenry opened this issue 8 years ago • 2 comments

Bug Report

  • Package version(s): 5.64.1
  • Browser and OS versions: PhantomJS

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes. The culprit is BaseButton.tsx method _onRenderDescription the description is pulled off this.props instead of the passed in props object.

Requested priority: High

Products/sites affected: Yammer

Describe the issue:

Oddly when we try to pull our UI library that uses a new Fabric version into our front end codebase, our jasmine unit tests blow on with the following error:

    >> :9747 logCapturedError
    >> TypeError: undefined is not an object (evaluating 'this.props') at
    >> undefined:186 _onRenderDescription
    >> :161 _onRenderTextContents
    >> :0
    >> :133 _onRenderContent
    >> :110 render

...a bunch of stack trace

   >> The above error occurred in the <BaseButton> component:
    >>     in BaseButton (created by Button)
    >>     in Button
    >>     in Provider

Expected behavior:

Not to blow up when we import the new version.

alxHenry avatar Mar 15 '18 00:03 alxHenry

It looks like the last change there was just a whitespace change. It hasn't really changed for 10 months, so I have no idea why this is exposed for us all of a sudden

alxHenry avatar Mar 15 '18 00:03 alxHenry

@micahgodbolt for BaseButton.

Jahnp avatar Mar 15 '18 06:03 Jahnp