<commit_before>var catalogPage = require('./catalog/catalog.page');

describe('catalog page', function() {

    it('should show more catalog entries on root level after each click on the more button', function() {

        catalogPage.load(92);
        var treeRoot = catalogPage.getTreeRoot();
        var rootList = catalogPage.getChildrenList(treeRoot);

        expect(catalogPage.getEntries(rootList).count()).toBe(10);

        for (var i = 20; i <= 40; i += 10) {
            catalogPage.getMoreButton(rootList).click();
            expect(catalogPage.getEntries(rootList).count()).toBe(i);
        }
    });

    it('should show more catalog entries on a lower level after each click on the more button', function() {

        catalogPage.load(79);
        var rootEntries = catalogPage.getRootEntries();

        catalogPage.getExpandButton(rootEntries.get(0)).click();

        var list = catalogPage.getChildrenList(rootEntries.get(0));
        var entries = catalogPage.getEntries(list);

        expect(entries.count()).toBe(10);

        for (var i = 20; i <= 40; i += 10) {
            catalogPage.getMoreButton(list).click();
            expect(catalogPage.getEntries(list).count()).toBe(i);
        }
    });

    it('should show information about the selected catalog entry', function() {

        catalogPage.load(92);
        var rootEntries = catalogPage.getRootEntries();

        expect(catalogPage.getEntityTitle().isPresent()).toBe(false);
        expect(catalogPage.getCatalogText().isPresent()).toBe(false);

        catalogPage.getEntryLabel(rootEntries.get(0)).click();

        expect(catalogPage.getEntityTitle().isPresent()).toBe(true);
        expect(catalogPage.getCatalogText().isPresent()).toBe(true);
    });

    it('should show markers in map view', function() {

        catalogPage.load(92);

        expect(catalogPage.getMarkers().count()).toBe(0);

        catalogPage.getMapButton().click();

        expect(catalogPage.getMarkers().count()).not.toBeLessThan(1);
    });

});<commit_msg>adjusted catalog e2e test to changes in catalog controller<commit_after>var catalogPage = require('./catalog/catalog.page');
var childrenLimit = 20;

describe('catalog page', function() {

    it('should show more catalog entries on root level after each click on the more button', function() {

        catalogPage.load(92);
        var treeRoot = catalogPage.getTreeRoot();
        var rootList = catalogPage.getChildrenList(treeRoot);

        expect(catalogPage.getEntries(rootList).count()).toBe(childrenLimit);

        for (var i = childrenLimit * 2; i <= childrenLimit * 4; i += childrenLimit) {
            catalogPage.getMoreButton(rootList).click();
            expect(catalogPage.getEntries(rootList).count()).toBe(i);
        }
    });

    it('should show more catalog entries on a lower level after each click on the more button', function() {

        catalogPage.load(79);
        var rootEntries = catalogPage.getRootEntries();

        catalogPage.getExpandButton(rootEntries.get(0)).click();

        var list = catalogPage.getChildrenList(rootEntries.get(0));
        var entries = catalogPage.getEntries(list);

        expect(entries.count()).toBe(childrenLimit);

        for (var i = childrenLimit * 2; i <= childrenLimit * 4; i += childrenLimit) {
            catalogPage.getMoreButton(list).click();
            expect(catalogPage.getEntries(list).count()).toBe(i);
        }
    });

    it('should show information about the selected catalog entry', function() {

        catalogPage.load(92);
        var rootEntries = catalogPage.getRootEntries();

        expect(catalogPage.getEntityTitle().isPresent()).toBe(false);
        expect(catalogPage.getCatalogText().isPresent()).toBe(false);

        catalogPage.getEntryLabel(rootEntries.get(0)).click();

        expect(catalogPage.getEntityTitle().isPresent()).toBe(true);
        expect(catalogPage.getCatalogText().isPresent()).toBe(true);
    });

    it('should show markers in map view', function() {

        catalogPage.load(92);

        expect(catalogPage.getMarkers().count()).toBe(0);

        catalogPage.getMapButton().click();

        expect(catalogPage.getMarkers().count()).toBeGreaterThan(0);
    });

});
{'fraction_non_alphanumeric': 0.1395184135977337, 'fraction_numerical': 0.011567516525023608, 'mean_word_length': 3.2117296222664016, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2534106', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1114, 'n_words': 231}