Skip to content
Snippets Groups Projects
Commit acdb28ec authored by Jack Reed's avatar Jack Reed
Browse files

adds Typography to metadata panel for themeability

parent 793fb68c
No related branches found
No related tags found
No related merge requests found
......@@ -52,15 +52,17 @@ describe('WindowSideBarInfoPanel', () => {
it('renders canvas metadata in LabelValueMetadata component', () => {
expect(
wrapper.find(LabelValueMetadata).at(0).matchesElement(
<LabelValueMetadata labelValuePairs={metadata} />,
wrapper.find(Typography).at(3).matchesElement(
<Typography>
<LabelValueMetadata labelValuePairs={metadata} />
</Typography>,
),
).toBe(true);
});
it('renders manifest label', () => {
expect(
wrapper.find(Typography).at(3).matchesElement(
wrapper.find(Typography).at(4).matchesElement(
<Typography>The Manifest Label</Typography>,
),
).toBe(true);
......@@ -68,7 +70,7 @@ describe('WindowSideBarInfoPanel', () => {
it('renders manifest description in SanitizedHtml component', () => {
expect(
wrapper.find(Typography).at(4).matchesElement(
wrapper.find(Typography).at(5).matchesElement(
<Typography>
<SanitizedHtml htmlString="The Manifest Description" ruleSet="iiif" />
</Typography>,
......@@ -78,8 +80,10 @@ describe('WindowSideBarInfoPanel', () => {
it('renders manifest metadata in LabelValueMetadata component', () => {
expect(
wrapper.find(LabelValueMetadata).at(1).matchesElement(
<LabelValueMetadata labelValuePairs={metadata} />,
wrapper.find(Typography).at(6).matchesElement(
<Typography>
<LabelValueMetadata labelValuePairs={metadata} />
</Typography>,
),
).toBe(true);
});
......
......@@ -48,7 +48,9 @@ class WindowSideBarInfoPanel extends Component {
)}
{canvasMetadata.length > 0 && (
<Typography variant="body2">
<LabelValueMetadata labelValuePairs={canvasMetadata} />
</Typography>
)}
<Divider />
......@@ -66,7 +68,9 @@ class WindowSideBarInfoPanel extends Component {
)}
{manifestMetadata.length > 0 && (
<Typography variant="body2">
<LabelValueMetadata labelValuePairs={manifestMetadata} />
</Typography>
)}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment