Skip to content

Commit 1328f46

Browse files
committed
fix(item-details): Ensure "Extend" is beside disposition date in sidebar
1 parent 26d516d commit 1328f46

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

src/features/item-details/ItemProperties.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060

6161
.bdl-RetentionLink {
6262
margin-left: 4px;
63+
display: inline;
6364
}
6465

6566
button {

src/features/item-details/__tests__/ItemProperties.test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,17 @@ describe('features/item-details/ItemProperties', () => {
7474

7575
expect(wrapper).toMatchSnapshot();
7676
});
77+
78+
test('should render retention policy details when specified', () => {
79+
const wrapper = getWrapper({
80+
retentionPolicyProps: {
81+
dispositionTime: 1741475146,
82+
openModal: () => {},
83+
policyType: 'finite',
84+
retentionPolicyDescription: 'Test Description',
85+
},
86+
});
87+
88+
expect(wrapper).toMatchSnapshot();
89+
});
7790
});

src/features/item-details/__tests__/__snapshots__/ItemProperties.test.js.snap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,16 @@ exports[`features/item-details/ItemProperties should render readonly url when on
214214
<RetentionPolicy />
215215
</dl>
216216
`;
217+
218+
exports[`features/item-details/ItemProperties should render retention policy details when specified 1`] = `
219+
<dl
220+
className="item-properties"
221+
>
222+
<RetentionPolicy
223+
dispositionTime={1741475146}
224+
openModal={[Function]}
225+
policyType="finite"
226+
retentionPolicyDescription="Test Description"
227+
/>
228+
</dl>
229+
`;

0 commit comments

Comments
 (0)