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.5.27 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.26 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.45 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.25 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.23 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.44 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.22 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.43 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.21 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.42 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.20 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.41 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.19 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.40 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.18 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.39 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.17 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.38 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.5.16 test/javascripts/content_editor_form_cancel_spec.js
workarea-admin-3.4.37 test/javascripts/content_editor_form_cancel_spec.js