Skip to content

Issue with storybook shots testing #104

@ButuzGOL

Description

@ButuzGOL

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions