diff --git a/__tests__/components/editor/ResourceTemplate.test.js b/__tests__/components/editor/ResourceTemplate.test.js index 9c3b871cb..0bd7c9378 100644 --- a/__tests__/components/editor/ResourceTemplate.test.js +++ b/__tests__/components/editor/ResourceTemplate.test.js @@ -55,6 +55,10 @@ describe('', () => { expect(wrapper.find('div.ResourceTemplate').length).toEqual(1) }) + it('displays the resource label of the resource template', () => { + expect(wrapper.find('h1').text()).toEqual(responseBody.response.body.resourceLabel) + }) + // TODO: if we have more than one resourceTemplate form, they need to have unique ids (see #130) it('contains
with id resourceTemplate', () => { expect(wrapper.find('div#resourceTemplate').length).toEqual(1) diff --git a/src/components/editor/Editor.jsx b/src/components/editor/Editor.jsx index 9c9e51b5c..df373e1d2 100644 --- a/src/components/editor/Editor.jsx +++ b/src/components/editor/Editor.jsx @@ -73,11 +73,7 @@ class Editor extends Component {
{ authenticationMessage }
-
-

Resource Template Label

-

[Clone|Edit] Name of Resource

-
-
+
diff --git a/src/components/editor/ResourceTemplate.jsx b/src/components/editor/ResourceTemplate.jsx index 10ecd4479..05cdece8e 100644 --- a/src/components/editor/ResourceTemplate.jsx +++ b/src/components/editor/ResourceTemplate.jsx @@ -36,7 +36,10 @@ class ResourceTemplate extends Component { renderRtData = () => { return (
-
+
+
+

{this.state.rtData.resourceLabel}

+