<commit_before>'use strict';

var logger = require('log4js').getLogger('blueprints_spec');
var components = require('../../src/components/index');


describe('blueprints page', function(){
    var testConf = components.config.tests.sanity.blueprints_spec;
    var BlueprintPage = components.ui.blueprints.BlueprintPage;

    beforeEach(function(){ logger.info('running from ' + __filename); });

    beforeEach(function(){
        components.ui.LoginPage.goTo().login('admin', 'admin');
    });

    describe('blueprint view', function() {

        beforeEach(function () {
            components.ui.blueprints.IndexPage.goToBlueprint({'name': testConf.blueprints.blueprintToRead});
        });

        it('should have all sections', function (done) {
            components.ui.blueprints.BlueprintPage.goToNodes();
            components.ui.blueprints.BlueprintPage.goToSource();
            browser.sleep(1000).then(done);
        });
    });

    describe('source view loading message', function(){

        it('should have working source section', function(done) {
            components.ui.blueprints.IndexPage.goToBlueprint({'name': testConf.blueprints.blueprintToRead});
            BlueprintPage.goToSource();
            BlueprintPage.Source.getTree();
            // we should be viewing the main blueprint file:
            BlueprintPage.Source.getFileTitle('simple-blueprint.yaml');
            BlueprintPage.Source.selectFile('README.md');
            BlueprintPage.Source.getFileTitle('README.md');
            BlueprintPage.Source.getFileContent();

            browser.sleep(1000).then( done );
        });

        fit('should have proper loading message', function(done) {

            browser.ignoreSynchronization = true;
            browser.get('/#/blueprint/nodecellar1/source');
            expect(BlueprintPage.Source.getLoadingMessage( true )).toBe('Generating Blueprint Source View...');
<commit_msg>fix(stabilize all) -  fix<commit_after>'use strict';

var logger = require('log4js').getLogger('blueprints_spec');
var components = require('../../src/components/index');


describe('blueprints page', function(){
    var testConf = components.config.tests.sanity.blueprints_spec;
    var BlueprintPage = components.ui.blueprints.BlueprintPage;

    beforeEach(function(){ logger.info('running from ' + __filename); });

    beforeEach(function(){
        components.ui.LoginPage.goTo().login('admin', 'admin');
    });

    describe('blueprint view', function() {

        beforeEach(function () {
            components.ui.blueprints.IndexPage.goToBlueprint({'name': testConf.blueprints.blueprintToRead});
        });

        it('should have all sections', function (done) {
            components.ui.blueprints.BlueprintPage.goToNodes();
            components.ui.blueprints.BlueprintPage.goToSource();
            browser.sleep(1000).then(done);
        });
    });

    describe('source view loading message', function(){

        it('should have working source section', function(done) {
            components.ui.blueprints.IndexPage.goToBlueprint({'name': testConf.blueprints.blueprintToRead});
            BlueprintPage.goToSource();
            BlueprintPage.Source.getTree();
            // we should be viewing the main blueprint file:
            BlueprintPage.Source.getFileTitle('simple-blueprint.yaml');
            BlueprintPage.Source.selectFile('README.md');
            BlueprintPage.Source.getFileTitle('README.md');
            BlueprintPage.Source.getFileContent();

            browser.sleep(1000).then( done );
        });

        it('should have proper loading message', function(done) {

            browser.ignoreSynchronization = true;
            browser.get('/#/blueprint/nodecellar1/source');
            expect(BlueprintPage.Source.getLoadingMessage( true )).toBe('Generating Blueprint Source View...');

{'fraction_non_alphanumeric': 0.13635187580853816, 'fraction_numerical': 0.00517464424320828, 'mean_word_length': 3.0103734439834025, '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': '1043124', 'n_tokens_mistral': 1046, 'n_tokens_neox': 1009, 'n_words': 168}