tween-one icon indicating copy to clipboard operation
tween-one copied to clipboard

Issue with storybook shots testing

Open ButuzGOL opened this issue 4 years ago • 0 comments

Got this error

● Storyshots › PageHeader › Details

TypeError: _this.target.getAttribute is not a function

  at node_modules/rc-tween-one/lib/Tween.js:108:51

storyshots.test.ts

import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots';

import '@/testUtils';

initStoryshots({
  test: multiSnapshotWithOptions({}),
  // TODO: Layout for now skip testing because issue with ant pro layout component
  storyKindRegex: /^((?!.*?(Theme|Layout|DetailsPage)).)*$/,
});

@testing-library/react pass ok

ButuzGOL avatar Jan 28 '21 17:01 ButuzGOL