Skip to content

Commit

Permalink
Disable snapshot test for AccordianList
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrobinson committed Nov 17, 2017
1 parent c918ea5 commit 83fb1b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions frontend/src/metabase/components/AccordianList.info.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const DemoPopover = ({ children }) =>

export const component = AccordianList;

// disable snapshot testing due to issue with Popover
export const noSnapshotTest = true;

export const description = `
An expandable and searchable list of sections and items.
`;
Expand Down
4 changes: 2 additions & 2 deletions frontend/test/internal/components.unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import renderer from "react-test-renderer";
import components from "metabase/internal/lib/components-node";

// generates a snapshot test for every example in every component's `.info.js`
components.map(({ component, examples }) =>
describe(component.displayName, () => {
components.map(({ component, examples, noSnapshotTest }) =>
!noSnapshotTest && describe(component.displayName, () => {
Object.entries(examples).map(([exampleName, element]) =>
it(`should render "${exampleName}" correctly`, () => {
expect(renderer.create(element).toJSON()).toMatchSnapshot();
Expand Down

0 comments on commit 83fb1b4

Please sign in to comment.