Refactor block highlight to be managed fully by highlight behavior

[MAILPOET-1819]
This commit is contained in:
Rostislav Wolny
2019-02-27 17:26:27 +01:00
committed by M. Shull
parent c526ba97e0
commit d69e0dea9e
5 changed files with 50 additions and 47 deletions

View File

@ -278,6 +278,10 @@ describe('Container', function () {
var settingsView;
var blockView = new (ContainerBlock.ContainerBlockView)({ model: model });
blockView.render();
// Set proper depth since we want to highlight only top level containers
blockView.renderOptions = {
depth: 1,
};
expect(blockView.$el.hasClass('mailpoet_highlight')).to.equal(false);
settingsView = new (ContainerBlock.ContainerBlockSettingsView)({ model: model });
settingsView.render();