summaryrefslogtreecommitdiff
path: root/js_tests/admin/actions.test.js
blob: 01e9267b94517163f63e82a26482e7b8b4772e5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module('admin.actions', {
    beforeEach: function() {
        // Number of results shown on page
        window._actions_icnt = '100';

        var $ = django.jQuery;
        $('#qunit-fixture').append($('#result-table').text());

        $('tr input.action-select').actions();
    }
});

test('check', function(assert) {
    var $ = django.jQuery;
    assert.notOk($('.action-select').is(':checked'));
    $('#action-toggle').click();
    assert.ok($('.action-select').is(':checked'));
});