<commit_before>/**
 *
 * E2E tests for the History plugin
 *
 */
var assert = require("chai").assert;

describe('History section', function() {

    var expected, selector, menu, bsUrl;
    var ptor = protractor.getInstance();
    var url;

    beforeEach(function () {
        browser.ignoreSynchronization = true;
        browser.get("/plugins");
        bsUrl     = process.env["BS_URL"];
    });
    it("should list the form sync options", function () {

        element.all(by.repeater("plugin in ui.plugins")).count().then(function (count) {
            assert.equal(1, count);
        });

        element.all(by.css(".bs-main-section ul li")).count().then(function (count) {
            assert.equal(1, count);
        });
    });
});<commit_msg>Refactor e2e test for plugins<commit_after>/**
 *
 * E2E tests for the History plugin
 *
 */
var assert = require("chai").assert;

describe('Plugins section', function() {

    var expected, selector, menu, bsUrl;
    var ptor = protractor.getInstance();
    var url;

    beforeEach(function () {
        browser.ignoreSynchronization = true;
        browser.get("/plugins");
        bsUrl     = process.env["BS_URL"];
    });
    it("should list the form sync options", function () {

        expect(element.all(by.repeater("plugin in ui.plugins")).count()).toBe(1);
        expect(element.all(by.css(".bs-main-section ul li")).count()).toBe(1);
    });
});
{'fraction_non_alphanumeric': 0.16560509554140126, 'fraction_numerical': 0.004953998584571833, 'mean_word_length': 2.8010752688172045, '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': '6320539', 'n_tokens_mistral': 434, 'n_tokens_neox': 418, 'n_words': 94}