diff --git a/client/src/components/ElementEditor/Element.js b/client/src/components/ElementEditor/Element.js index be75a647..b3287e7d 100644 --- a/client/src/components/ElementEditor/Element.js +++ b/client/src/components/ElementEditor/Element.js @@ -171,6 +171,7 @@ class Element extends Component { const { element, type, + areaId, HeaderComponent, ContentComponent, link, @@ -215,6 +216,7 @@ class Element extends Component { { const wrapper = shallow( { ...element, ID: '' }} + areaId={1} type={type} link={'admin/pages/edit/EditForm/7/field/ElementalArea/item/2/edit?stage=Stage'} {...defaultProps} @@ -86,6 +88,7 @@ describe('Element', () => { ...element, IsPublished: false, }} + areaId={1} type={type} link="/" {...defaultProps} @@ -103,6 +106,7 @@ describe('Element', () => { IsPublished: true, IsLiveVersion: false, }} + areaId={1} type={type} link="/" {...defaultProps} @@ -120,6 +124,7 @@ describe('Element', () => { IsPublished: true, IsLiveVersion: true, }} + areaId={1} type={type} link="/" {...defaultProps} diff --git a/client/src/components/ElementEditor/tests/ElementActions-test.js b/client/src/components/ElementEditor/tests/ElementActions-test.js index f26121f4..2a658a94 100644 --- a/client/src/components/ElementEditor/tests/ElementActions-test.js +++ b/client/src/components/ElementEditor/tests/ElementActions-test.js @@ -21,6 +21,7 @@ describe('ElementActions', () => { it('should map input tabs into an array of buttons', () => { const wrapper = shallow( @@ -38,6 +39,7 @@ describe('ElementActions', () => { it('should render the given "edit tabs" in the action menu', () => { const wrapper = shallow( @@ -55,6 +57,7 @@ describe('ElementActions', () => { it('should render a divider when CMS tab actions and default actions are rendered', () => { const wrapper = shallow( diff --git a/client/src/components/ElementEditor/tests/Header-test.js b/client/src/components/ElementEditor/tests/Header-test.js index 85c14315..794757d1 100644 --- a/client/src/components/ElementEditor/tests/Header-test.js +++ b/client/src/components/ElementEditor/tests/Header-test.js @@ -31,6 +31,7 @@ describe('Header', () => { const wrapper = shallow(
@@ -45,6 +46,7 @@ describe('Header', () => { const wrapper = shallow(
@@ -58,6 +60,7 @@ describe('Header', () => { const wrapper = shallow(
@@ -72,6 +75,7 @@ describe('Header', () => { const wrapper = shallow(
{ const wrapper = shallow(
{ const wrapper = shallow(
{ const wrapper = shallow(
{ const wrapper = shallow(
{ const wrapper = shallow(
@@ -164,6 +173,7 @@ describe('Header', () => { element.IsLiveVersion = false; const wrapper = shallow(
{ element.IsLiveVersion = true; const wrapper = shallow(