diff --git a/test/specs/css_composer/e2e/CssComposer.js b/test/specs/css_composer/e2e/CssComposer.js index 83a015a1f..f512923b3 100644 --- a/test/specs/css_composer/e2e/CssComposer.js +++ b/test/specs/css_composer/e2e/CssComposer.js @@ -128,16 +128,7 @@ describe('E2E tests', () => { // ruleOut is a Model ruleOut = JSON.parse(JSON.stringify(ruleOut)); var ruleResult = { - selectors: [ - { - active: true, - label: 'test1', - name: 'test1', - type: clsm.Selector.TYPE_CLASS, - private: false, - protected: false - } - ], + selectors: ['test1'], style: { color: 'red', width: '10px' diff --git a/test/specs/dom_components/model/Component.js b/test/specs/dom_components/model/Component.js index 82bc1b204..8a55aff90 100644 --- a/test/specs/dom_components/model/Component.js +++ b/test/specs/dom_components/model/Component.js @@ -274,9 +274,9 @@ describe('Component', () => { }); test('setAttributes overwrites correctly', () => { - obj.setAttributes({ id: 'test', 'data-test': 'value', a: 'b' }); - obj.setAttributes({ 'data-test': 'value2' }); - expect(obj.getAttributes()).toEqual({ 'data-test': 'value2' }); + obj.setAttributes({ id: 'test', 'data-test': 'value', a: 'b', b: 'c' }); + obj.setAttributes({ id: 'test2', 'data-test': 'value2' }); + expect(obj.getAttributes()).toEqual({ id: 'test2', 'data-test': 'value2' }); }); test('append() returns always an array', () => {