diff --git a/src/panels/view/ButtonView.js b/src/panels/view/ButtonView.js index ae8189900..a5920473f 100644 --- a/src/panels/view/ButtonView.js +++ b/src/panels/view/ButtonView.js @@ -136,6 +136,7 @@ export default Backbone.View.extend({ * */ clicked(e) { const { model } = this; + if (model.get('bntsVis') || model.get('disable') || !model.get('command')) return; diff --git a/test/specs/editor/index.js b/test/specs/editor/index.js index 1eb70a084..dd832d129 100644 --- a/test/specs/editor/index.js +++ b/test/specs/editor/index.js @@ -3,7 +3,7 @@ import Editor from 'editor'; const { keys } = Object; const initComps = 1; -describe.only('Editor', () => { +describe('Editor', () => { let editor; beforeEach(() => { diff --git a/test/specs/grapesjs/index.js b/test/specs/grapesjs/index.js index a10bd6702..c6a71d0b9 100644 --- a/test/specs/grapesjs/index.js +++ b/test/specs/grapesjs/index.js @@ -85,7 +85,7 @@ describe('GrapesJS', () => { expect(editor.getStyle().length).toEqual(0); }); - test.only('Editor canvas baseCSS can be overwritten', () => { + test('Editor canvas baseCSS can be overwritten', () => { config.components = htmlString; config.baseCss = '#wrapper { background-color: #eee; }'; config.protectedCss = ''; diff --git a/test/specs/panels/view/ButtonView.js b/test/specs/panels/view/ButtonView.js index ee890a468..4f1f5bb80 100644 --- a/test/specs/panels/view/ButtonView.js +++ b/test/specs/panels/view/ButtonView.js @@ -8,7 +8,7 @@ describe('ButtonView', () => { var btnClass = 'btn'; beforeEach(() => { - model = new Button(); + model = new Button({ command: 'fake-command' }); view = new ButtonView({ model: model });