Sha256: 13b4ce7067d4f1504a991b3b2fda6a5193155e4ffce364513b6fd15646280d0e

Contents?: true

Size: 876 Bytes

Versions: 62

Compression:

Stored size: 876 Bytes

Contents

(function () {
    'use strict';
    describe('WORKAREA.addToCalendarButtons', function () {
        describe('init', function () {
            after(function () {
                $('.tooltipster-base').remove();
            });

            it('should toggle content on click', function () {
                this.fixture = fixture.load('add_to_calendar_button.html');

                this.$button = $('[data-add-to-calendar-button]');
                this.$toggle = $('[data-add-to-calendar-button-toggle]');

                WORKAREA.addToCalendarButtons.init($(this.fixture));

                this.$button.tooltipster('show');

                expect($('.tooltipster-content').text()).to.include('Foo');

                this.$toggle.trigger('click');

                expect($('.tooltipster-content').text()).to.include('Bar');
            });
        });
    });
}());

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.15 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.36 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.14 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.35 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.13 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.34 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.12 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.33 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.11 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.10 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.32 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.9 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.31 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.8 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.30 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.7 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.29 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.6 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.4.28 test/javascripts/add_to_calendar_buttons_spec.js
workarea-admin-3.5.5 test/javascripts/add_to_calendar_buttons_spec.js