Skip to content

Commit

Permalink
Fix tests after updating antd features
Browse files Browse the repository at this point in the history
Signed-off-by: Dinika Saxena <dinikasaxenas@gmail.com>
  • Loading branch information
Dinika committed Oct 4, 2023
1 parent be385b7 commit 5967dc7
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports[`JIRA > renders authraizeJIRAUI 1`] = `
>
<div>
<input
class="ant-input css-dev-only-do-not-override-17a39f8"
class="ant-input css-dev-only-do-not-override-pr0fja"
placeholder="Verification code"
style="background-color: rgb(255, 255, 255); width: 200px;"
type="text"
Expand All @@ -41,7 +41,7 @@ exports[`JIRA > renders authraizeJIRAUI 1`] = `
</div>
<div>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-primary"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-primary"
type="button"
>
<span>
Expand All @@ -58,7 +58,7 @@ exports[`JIRA > renders authraizeJIRAUI 1`] = `
exports[`JIRA > renders with empty prop values 1`] = `
<div>
<div
class="css-dev-only-do-not-override-17a39f8 ant-empty"
class="css-dev-only-do-not-override-pr0fja ant-empty"
>
<div
class="ant-empty-image"
Expand Down Expand Up @@ -132,7 +132,7 @@ exports[`JIRA > renders with empty prop values 1`] = `
class="ant-empty-footer"
>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-primary"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-primary"
name="Create Issue"
role="button"
type="button"
Expand All @@ -145,7 +145,7 @@ exports[`JIRA > renders with empty prop values 1`] = `
or
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-default"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-default"
name="Link Issue"
role="button"
type="button"
Expand All @@ -165,7 +165,7 @@ exports[`JIRA > renders with issues 1`] = `
style="width: 100%; display: flex; margin-bottom: 10px; margin-top: 10px;"
>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-primary ant-dropdown-trigger"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-primary ant-dropdown-trigger"
style="margin-left: auto;"
type="button"
>
Expand Down Expand Up @@ -194,10 +194,10 @@ exports[`JIRA > renders with issues 1`] = `
</button>
</div>
<div
class="ant-table-wrapper jira-table css-dev-only-do-not-override-17a39f8"
class="ant-table-wrapper jira-table css-dev-only-do-not-override-pr0fja"
>
<div
class="ant-spin-nested-loading css-dev-only-do-not-override-17a39f8"
class="ant-spin-nested-loading css-dev-only-do-not-override-pr0fja"
>
<div
class="ant-spin-container"
Expand Down Expand Up @@ -293,18 +293,18 @@ exports[`JIRA > renders with issues 1`] = `
class="ant-table-cell"
>
<div
class="ant-space-compact css-dev-only-do-not-override-17a39f8 ant-space-compact-block ant-dropdown-button css-dev-only-do-not-override-17a39f8"
class="ant-space-compact css-dev-only-do-not-override-pr0fja ant-space-compact-block ant-dropdown-button css-dev-only-do-not-override-pr0fja"
>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-default ant-btn-sm ant-btn-compact-item ant-btn-compact-first-item"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-default ant-btn-sm ant-btn-compact-item ant-btn-compact-first-item"
type="button"
>
<span>
Options
</span>
</button>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-default ant-btn-sm ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-default ant-btn-sm ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger"
type="button"
>
<span
Expand Down Expand Up @@ -340,7 +340,7 @@ exports[`JIRA > renders with issues 1`] = `
</div>
</div>
<ul
class="ant-pagination ant-pagination-mini ant-table-pagination ant-table-pagination-right css-dev-only-do-not-override-17a39f8"
class="ant-pagination ant-pagination-mini ant-table-pagination ant-table-pagination-right css-dev-only-do-not-override-pr0fja"
>
<li
aria-disabled="true"
Expand Down Expand Up @@ -430,7 +430,7 @@ exports[`JIRA > renders with projects 1`] = `
style="width: 100%; display: flex; margin-bottom: 10px; margin-top: 10px;"
>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-primary ant-dropdown-trigger"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-primary ant-dropdown-trigger"
style="margin-left: auto;"
type="button"
>
Expand Down Expand Up @@ -459,10 +459,10 @@ exports[`JIRA > renders with projects 1`] = `
</button>
</div>
<div
class="ant-table-wrapper jira-table css-dev-only-do-not-override-17a39f8"
class="ant-table-wrapper jira-table css-dev-only-do-not-override-pr0fja"
>
<div
class="ant-spin-nested-loading css-dev-only-do-not-override-17a39f8"
class="ant-spin-nested-loading css-dev-only-do-not-override-pr0fja"
>
<div
class="ant-spin-container"
Expand Down Expand Up @@ -566,18 +566,18 @@ exports[`JIRA > renders with projects 1`] = `
class="ant-table-cell"
>
<div
class="ant-space-compact css-dev-only-do-not-override-17a39f8 ant-space-compact-block ant-dropdown-button css-dev-only-do-not-override-17a39f8"
class="ant-space-compact css-dev-only-do-not-override-pr0fja ant-space-compact-block ant-dropdown-button css-dev-only-do-not-override-pr0fja"
>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-default ant-btn-sm ant-btn-compact-item ant-btn-compact-first-item"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-default ant-btn-sm ant-btn-compact-item ant-btn-compact-first-item"
type="button"
>
<span>
Options
</span>
</button>
<button
class="ant-btn css-dev-only-do-not-override-17a39f8 ant-btn-default ant-btn-sm ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger"
class="ant-btn css-dev-only-do-not-override-pr0fja ant-btn-default ant-btn-sm ant-btn-icon-only ant-btn-compact-item ant-btn-compact-last-item ant-dropdown-trigger"
type="button"
>
<span
Expand Down Expand Up @@ -613,7 +613,7 @@ exports[`JIRA > renders with projects 1`] = `
</div>
</div>
<ul
class="ant-pagination ant-pagination-mini ant-table-pagination ant-table-pagination-right css-dev-only-do-not-override-17a39f8"
class="ant-pagination ant-pagination-mini ant-table-pagination ant-table-pagination-right css-dev-only-do-not-override-pr0fja"
>
<li
aria-disabled="true"
Expand Down Expand Up @@ -703,13 +703,13 @@ exports[`JIRA > shows loading spinner 1`] = `
style="width: 100%; display: flex; margin-bottom: 10px; margin-top: 10px; height: 200px; justify-content: center; align-items: center;"
>
<div
class="ant-spin-nested-loading css-dev-only-do-not-override-17a39f8"
class="ant-spin-nested-loading css-dev-only-do-not-override-pr0fja"
>
<div>
<div
aria-busy="true"
aria-live="polite"
class="ant-spin ant-spin-lg ant-spin-spinning css-dev-only-do-not-override-17a39f8"
class="ant-spin ant-spin-lg ant-spin-spinning css-dev-only-do-not-override-pr0fja"
>
<span
class="ant-spin-dot ant-spin-dot-spin"
Expand Down
86 changes: 43 additions & 43 deletions src/shared/containers/ResourcePlugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,57 +109,57 @@ const ResourcePlugins: React.FunctionComponent<{
return pluginData ? (
<div id={`plugin-collapsable-${index}`} style={{ marginBottom: 10 }}>
<ErrorBoundary
fallback={() => (
fallback={() => (
<Collapse
key={pluginData.name}
items={[
{
key: pluginData.name,
label: pluginData.name,
children: (
<>
<h1>Something went wrong.</h1>
<p>
Check that the shape of the data matches the
plugin's expectations.
</p>
</>
),
},
]}
/>
)}
key={pluginData.name}
>
<Collapse
key={pluginData.name}
items={[
onChange={e => 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: (
<>
<h1>Something went wrong.</h1>
<p>
Check that the shape of the data matches the plugin's
expectations.
</p>
</>
<div
className="resource-plugin"
key={`plugin-${pluginData.name}`}
>
<NexusPlugin
nexusClient={nexus}
url={pluginData.absoluteModulePath}
pluginName={pluginData.name}
resource={resource}
goToResource={goToResource}
/>
</div>
),
},
]}
/>
)}
key={pluginData.name}
>
<Collapse
key={pluginData.name}
onChange={e => handleCollapseChange(pluginData.name)}
activeKey={
openPlugins.includes(pluginData.name)
? pluginData.name
: undefined
}
items={[
{
key: `${pluginData.name}`,
label: `${pluginData.name}`,
children: (
<div
className="resource-plugin"
key={`plugin-${pluginData.name}`}
>
<NexusPlugin
nexusClient={nexus}
url={pluginData.absoluteModulePath}
pluginName={pluginData.name}
resource={resource}
goToResource={goToResource}
/>
</div>
),
},
]}
/>
</ErrorBoundary>
</div>
) : null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ const WorkspaceMenu: React.FC<WorkspaceMenuProps> = ({
block
type="default"
icon={<EditOutlined />}
data-testid="editWorkspace"
onClick={e => {
setShowEdit(true);
}}
Expand Down

0 comments on commit 5967dc7

Please sign in to comment.