diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx
index 46e5abce5f5f8..7f2446c0625f8 100644
--- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx
+++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/config_panel.test.tsx
@@ -121,9 +121,11 @@ describe('ConfigPanel', () => {
describe('focus behavior when adding or removing layers', () => {
it('should focus the only layer when resetting the layer', () => {
- const component = mountWithIntl(, {
- attachTo: container,
- });
+ const component = mountWithIntl(
+ ,
+ // @ts-expect-error
+ { attachTo: container }
+ );
const firstLayerFocusable = component
.find(LayerPanel)
.first()
@@ -144,7 +146,11 @@ describe('ConfigPanel', () => {
first: mockDatasource.publicAPIMock,
second: mockDatasource.publicAPIMock,
};
- const component = mountWithIntl(, { attachTo: container });
+ const component = mountWithIntl(
+ ,
+ // @ts-expect-error
+ { attachTo: container }
+ );
const secondLayerFocusable = component
.find(LayerPanel)
.at(1)
@@ -165,7 +171,11 @@ describe('ConfigPanel', () => {
first: mockDatasource.publicAPIMock,
second: mockDatasource.publicAPIMock,
};
- const component = mountWithIntl(, { attachTo: container });
+ const component = mountWithIntl(
+ ,
+ // @ts-expect-error
+ { attachTo: container }
+ );
const firstLayerFocusable = component
.find(LayerPanel)
.first()
@@ -187,9 +197,11 @@ describe('ConfigPanel', () => {
}
});
- const component = mountWithIntl(, {
- attachTo: container,
- });
+ const component = mountWithIntl(
+ ,
+ // @ts-expect-error
+ { attachTo: container }
+ );
act(() => {
component.find('[data-test-subj="lnsLayerAddButton"]').first().simulate('click');
});