From 5967dc747563c2e0f364bb2a1bba00328576cad3 Mon Sep 17 00:00:00 2001 From: Dinika Saxena Date: Wed, 4 Oct 2023 10:21:24 +0200 Subject: [PATCH] Fix tests after updating antd features Signed-off-by: Dinika Saxena --- .../__snapshots__/JIRA.spec.tsx.snap | 42 ++++----- src/shared/containers/ResourcePlugins.tsx | 86 +++++++++---------- .../containers/WorkspaceMenuContainer.tsx | 1 - 3 files changed, 64 insertions(+), 65 deletions(-) diff --git a/src/shared/components/JIRA/__tests__/__snapshots__/JIRA.spec.tsx.snap b/src/shared/components/JIRA/__tests__/__snapshots__/JIRA.spec.tsx.snap index d762a0e625..789b04e819 100644 --- a/src/shared/components/JIRA/__tests__/__snapshots__/JIRA.spec.tsx.snap +++ b/src/shared/components/JIRA/__tests__/__snapshots__/JIRA.spec.tsx.snap @@ -32,7 +32,7 @@ exports[`JIRA > renders authraizeJIRAUI 1`] = ` >
renders authraizeJIRAUI 1`] = `
renders with issues 1`] = ` class="ant-table-cell" >
  • renders with projects 1`] = ` style="width: 100%; display: flex; margin-bottom: 10px; margin-top: 10px;" >
renders with projects 1`] = ` class="ant-table-cell" >
  • shows loading spinner 1`] = ` style="width: 100%; display: flex; margin-bottom: 10px; margin-top: 10px; height: 200px; justify-content: center; align-items: center;" >
    ( + fallback={() => ( + +

    Something went wrong.

    +

    + Check that the shape of the data matches the + plugin's expectations. +

    + + ), + }, + ]} + /> + )} + key={pluginData.name} + > handleCollapseChange(pluginData.name)} + activeKey={ + openPlugins.includes(pluginData.name) + ? pluginData.name + : undefined + } + items={[ { - key: pluginData.name, - label: pluginData.name, + key: `${pluginData.name}`, + label: `${pluginData.name}`, children: ( - <> -

    Something went wrong.

    -

    - Check that the shape of the data matches the plugin's - expectations. -

    - +
    + +
    ), }, ]} /> - )} - key={pluginData.name} - > - handleCollapseChange(pluginData.name)} - activeKey={ - openPlugins.includes(pluginData.name) - ? pluginData.name - : undefined - } - items={[ - { - key: `${pluginData.name}`, - label: `${pluginData.name}`, - children: ( -
    - -
    - ), - }, - ]} - />
    ) : null; diff --git a/src/subapps/studioLegacy/containers/WorkspaceMenuContainer.tsx b/src/subapps/studioLegacy/containers/WorkspaceMenuContainer.tsx index b3003fd5c4..648ee03736 100644 --- a/src/subapps/studioLegacy/containers/WorkspaceMenuContainer.tsx +++ b/src/subapps/studioLegacy/containers/WorkspaceMenuContainer.tsx @@ -387,7 +387,6 @@ const WorkspaceMenu: React.FC = ({ block type="default" icon={} - data-testid="editWorkspace" onClick={e => { setShowEdit(true); }}