Sha256: 9953724869dad3201925d861e30fc782323d882aecf8cf774c66a28c11843ab8

Contents?: true

Size: 705 Bytes

Versions: 62

Compression:

Stored size: 705 Bytes

Contents

(function () {
    'use strict';

    describe('WORKAREA.contentEditorFormCancel', function () {
        describe('init', function () {
            it('closes the edit form when clicked', function () {
                var $fixture = $(fixture.load('content_block_editor_form.html'));

                WORKAREA.contentEditorFormCancel.init($fixture);

                $('.content-block').addClass('content-block--inactive');
                $('[data-content-editor-form-cancel]').trigger('click');

                expect(_.isEmpty($('.content-block--active'))).to.equal(true);
                expect($('.content-editor__aside').css('display')).to.equal('block');
            });
        });
    });
}());

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.27 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.4 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.26 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.3 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.25 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.2 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.24 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.1 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.23 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.22 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.0 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.21 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.0.beta.1 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.20 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.19 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.18 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.17 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.16 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.15 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.14 test/javascripts/content_editor_form_cancel_spec.js