<commit_before>'use strict';

describe('<%= entityClass %> e2e test', function () {

    var username = element(by.id('username'));
    var password = element(by.id('password'));
    var entityMenu = element(by.id('entity-menu'));
    var accountMenu = element(by.id('account-menu'));
    var login = element(by.id('login'));
    var logout = element(by.id('logout'));

    beforeAll(function () {
        browser.get('/');
        browser.driver.wait(protractor.until.elementIsVisible(element(by.css('h1'))));

        accountMenu.click();
        login.click();

        username.sendKeys('admin');
        password.sendKeys('<PASSWORD>');
        element(by.css('button[type=submit]')).click();
    });

    it('should load <%= entityClassPlural %>', function () {
        entityMenu.click();
        element(by.css('[ui-sref="<%= entityStateName %>"]')).click();
        expect(element.all(by.css('h2')).first().getText()).toMatch(/<%= entityClassPlural %>/);
    });

    it('should load create <%= entityClass %> dialog', function () {
        element(by.css('[ui-sref="<%= entityStateName %>.new"]')).click();
        expect(element.all(by.css('h4')).first().getText()).toMatch(/Create or edit a <%= entityClass %>/);
    });

    afterAll(function () {
        accountMenu.click();
        logout.click();
    });
});<commit_msg>fix entity e2e tests<commit_after>'use strict';

describe('<%= entityClass %> e2e test', function () {

    var username = element(by.id('username'));
    var password = element(by.id('password'));
    var entityMenu = element(by.id('entity-menu'));
    var accountMenu = element(by.id('account-menu'));
    var login = element(by.id('login'));
    var logout = element(by.id('logout'));

    beforeAll(function () {
        browser.get('/');
        browser.driver.wait(protractor.until.elementIsVisible(element(by.css('h1'))));

        accountMenu.click();
        login.click();

        username.sendKeys('admin');
        password.sendKeys('admin');
        element(by.css('button[type=submit]')).click();
    });

    it('should load <%= entityClassPlural %>', function () {
        entityMenu.click();
        element(by.css('[ui-sref="<%= entityStateName %>"]')).click();
        expect(element.all(by.css('h2')).first().getText()).toMatch(/<%= entityClassPlural %>/);
    });

    it('should load create <%= entityClass %> dialog', function () {
        element(by.css('[ui-sref="<%= entityStateName %>.new"]')).click();
        expect(element.all(by.css('h4')).first().getText()).toMatch(/Create or edit a <%= entityClass %>/);
        element(by.css('button.close')).click();
    });

    afterAll(function () {
        accountMenu.click();
        logout.click();
    });
});
{'fraction_non_alphanumeric': 0.21724770642201835, 'fraction_numerical': 0.0033027522935779817, 'mean_word_length': 3.2996845425867507, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '4825235', 'n_tokens_mistral': 848, 'n_tokens_neox': 814, 'n_words': 124}