<commit_before>function inPageNavSpec(hash, tabs) {

    var describeSpec = 'Test responsive tabs';

    describe(describeSpec, function () {

        it('check change tab removes class and adds classes for the correct controlID', function () {
            expect($('#first-tab').hasClass('selected')).to.equal(true);
            $('#first-tab').click();
            expect($('#first-tab').hasClass('selected')).to.equal(true);
            expect($('#second-tab').hasClass('selected')).to.equal(false);
            $('#fourth-tab').click();
            expect($('#first-tab').hasClass('selected')).to.equal(false);
            expect($('#third-tab').hasClass('selected')).to.equal(false);
            expect($('#fourth-tab').hasClass('selected')).to.equal(true);
        });
    });

    return describeSpec;
}

if (window.define) {
    define('specs/inPageNavSpec', ['utils/hashManager', 'components/inPageNav'],
        function (hash, tabs) {
            return inPageNavSpec(hash, tabs);
        }
    );
}<commit_msg>PM: make in page tab tests more reliable Resolves #108<commit_after>function inPageNavSpec(hash, tabs) {

    var describeSpec = 'Responsive tabs';

    describe(describeSpec, function () {

        it('change tab look when changing tabs', function () {
            $('#first-tab').click();
            expect($('#first-tab').hasClass('selected')).to.equal(true);
            expect($('#fourth-tab').hasClass('selected')).to.equal(false);
            $('#fourth-tab').click();
            expect($('#fourth-tab').hasClass('selected')).to.equal(true);
            expect($('#first-tab').hasClass('selected')).to.equal(false);
        });
        it('will only have one tab selected at a time', function () {
            $('#first-tab').click();
            expect($('#demo-inpage-nav-tabs .tab.selected').length).to.equal(1);
            $('#fourth-tab').click();
            expect($('#demo-inpage-nav-tabs .tab.selected').length).to.equal(1);
        });
    });

    return describeSpec;
}

if (window.define) {
    define('specs/inPageNavSpec', ['utils/hashManager', 'components/inPageNav'],
        function (hash, tabs) {
            return inPageNavSpec(hash, tabs);
        }
    );
}
{'fraction_non_alphanumeric': 0.19430637144148216, 'fraction_numerical': 0.0022593764121102574, 'mean_word_length': 2.7653061224489797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1434744', 'n_tokens_mistral': 638, 'n_tokens_neox': 623, 'n_words': 104}