<commit_before>/*jshint node:true */
'use strict';

describe('E2E: Testing translation view', function () {

    beforeAll(function () {
        browser.setLocation('translation');
    });

    it('should have a working /translation route', function () {

        expect(browser.getLocationAbsUrl()).toBe('/translation');
    });

    it('should have a translated text in English', function () {

        element.all(by.css('p[translate]')).then(function (items) {
            expect(items.length).toBe(3);
            expect(items[0].getText()).toBe('Welcome!');
        });
    });

    it('should translated text to Spanish', function () {

        element(by.buttonText('es-ES')).click();

        element.all(by.css('p[translate]')).then(function (items) {
            expect(items.length).toBe(3);
            expect(items[0].getText()).toBe('Bienvenido!');
        });
    });

});
<commit_msg>- Fixed translation demo URL<commit_after>/*jshint node:true */
'use strict';

describe('E2E: Testing translation view', function () {

    beforeAll(function () {
        browser.setLocation('demos/translation');
    });

    it('should have a working /demos/translation route', function () {

        expect(browser.getLocationAbsUrl()).toBe('/demos/translation');
    });

    it('should have a translated text in English', function () {

        element.all(by.css('p[translate]')).then(function (items) {
            expect(items.length).toBe(3);
            expect(items[0].getText()).toBe('Welcome!');
        });
    });

    it('should translated text to Spanish', function () {

        element(by.buttonText('es-ES')).click();

        element.all(by.css('p[translate]')).then(function (items) {
            expect(items.length).toBe(3);
            expect(items[0].getText()).toBe('Bienvenido!');
        });
    });

});

{'fraction_non_alphanumeric': 0.18528610354223432, 'fraction_numerical': 0.005449591280653951, 'mean_word_length': 2.8816067653276956, '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': '4910098', 'n_tokens_mistral': 535, 'n_tokens_neox': 516, 'n_words': 88}