diff --git a/packages/react-core/src/components/ApplicationLauncher/ApplicationLauncher.tsx b/packages/react-core/src/components/ApplicationLauncher/ApplicationLauncher.tsx index 5c34c7d5d5c..e0540d54dfb 100644 --- a/packages/react-core/src/components/ApplicationLauncher/ApplicationLauncher.tsx +++ b/packages/react-core/src/components/ApplicationLauncher/ApplicationLauncher.tsx @@ -61,6 +61,8 @@ export interface ApplicationLauncherProps favoritesLabel?: string; /** ID of toggle */ toggleId?: string; + /** @beta Opt-in for updated popper that does not use findDOMNode. */ + removeFindDomNode?: boolean; } export class ApplicationLauncher extends React.Component { @@ -83,7 +85,8 @@ export class ApplicationLauncher extends React.Component { @@ -129,6 +132,7 @@ export class ApplicationLauncher extends React.Component { test('custom icon', () => { const { asFragment } = render( - } /> + + } /> + ); expect(asFragment()).toMatchSnapshot(); }); + + test('Renders in strict mode', () => { + const consoleError = jest.spyOn(console, 'error'); + const { asFragment } = render(); + expect(consoleError).not.toHaveBeenCalled(); + expect(asFragment()).toMatchSnapshot(); + }); }); diff --git a/packages/react-core/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap b/packages/react-core/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap index eaee472026a..478ec5517a2 100644 --- a/packages/react-core/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +++ b/packages/react-core/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap @@ -1,5 +1,151 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`ApplicationLauncher Renders in strict mode 1`] = ` + + + +`; + exports[`ApplicationLauncher custom icon 1`] = `