$('.js-toolbar-status').click(function(ev) {
        $(this).parents('.dropdown').toggleClass('open');
        let selectedCases = getSelectedTestCases();

        if (!selectedCases.length) {