<commit_before>'use strict';

// we test on 1920 x 1080 by default

var Eyes = require('eyes.protractor').Eyes;
var _ = require('lodash');
var eyes = new Eyes();
eyes.setApiKey(process.env.APPLITOOLS_KEY);
var logger = require('log4js').getLogger('example_spec');

describe('cloudify-ui', function(){

    var categories = {
        misc: {
            'Logs Page': '/#/logs',
            'Login Page' : '/#/login',
            'Nodes Page': '/#/hosts',
            'Interface Page': '/#/interface'
        },
        blueprints: {
            'Blueprints Page': '/#/blueprints',

            'Blueprint Topology': '/#/blueprint/nodecellar1/topology',
            'Blueprint New Topology': '/#/blueprint/nodecellar1/newtopology',
            'Blueprint Network': '/#/blueprint/nodecellar1/network',
            'Blueprint Nodes': '/#/blueprint/nodecellar1/nodes',
            'Blueprint Source': '/#/blueprint/nodecellar1/source'
        },
        deployments: {
            'Deployments Page': '/#/deployments',
            'Deployment Topology': '/#/deployment/installed_deployment/topology',
            'Deployment Network': '/#/deployment/installed_deployment/network',
            'Deployment Nodes': '/#/deployment/installed_deployment/nodes',
            'Deployment Executions': '/#/deployment/installed_deployment/executions',
            'Deployment Inputs Outputs': '/#/deployment/installed_deployment/inputs-outputs',
            'Deployment Source': '/#/deployment/installed_deployment/source',
            'Deployment Monitoring': '/#/deployment/installed_deployment/monitoring'
        }


        };

    _.each(categories, function (tests, c) {
        it('should have ' + c, function () {
            eyes.setMatchLevel('Layout');
            eyes.open(browser, c + ' Cloudify UI', c + ' Sanity Suite', {width: 1920, height: 1080});
            _.each(tests, function (url, name) {
                browser.get(url);
                eyes.checkWindow(name);
            });

        });
    });
<commit_msg>fix(applitools): removed paths of new topology or network which no longer exist CFY-4264<commit_after>'use strict';

// we test on 1920 x 1080 by default

var Eyes = require('eyes.protractor').Eyes;
var _ = require('lodash');
var eyes = new Eyes();
eyes.setApiKey(process.env.APPLITOOLS_KEY);
var logger = require('log4js').getLogger('example_spec');

describe('cloudify-ui', function(){

    var categories = {
        misc: {
            'Logs Page': '/#/logs',
            'Login Page' : '/#/login',
            'Nodes Page': '/#/hosts',
            'Interface Page': '/#/interface'
        },
        blueprints: {
            'Blueprints Page': '/#/blueprints',

            'Blueprint Topology': '/#/blueprint/nodecellar1/topology',
            'Blueprint Nodes': '/#/blueprint/nodecellar1/nodes',
            'Blueprint Source': '/#/blueprint/nodecellar1/source'
        },
        deployments: {
            'Deployments Page': '/#/deployments',
            'Deployment Topology': '/#/deployment/installed_deployment/topology',
            'Deployment Nodes': '/#/deployment/installed_deployment/nodes',
            'Deployment Executions': '/#/deployment/installed_deployment/executions',
            'Deployment Inputs Outputs': '/#/deployment/installed_deployment/inputs-outputs',
            'Deployment Source': '/#/deployment/installed_deployment/source',
            'Deployment Monitoring': '/#/deployment/installed_deployment/monitoring'
        }


        };

    _.each(categories, function (tests, c) {
        it('should have ' + c, function () {
            eyes.setMatchLevel('Layout');
            eyes.open(browser, c + ' Cloudify UI', c + ' Sanity Suite', {width: 1920, height: 1080});
            _.each(tests, function (url, name) {
                browser.get(url);
                eyes.checkWindow(name);
            });

        });
    });

{'fraction_non_alphanumeric': 0.15315546434068752, 'fraction_numerical': 0.011800923550538737, 'mean_word_length': 2.3381849315068495, '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': '5909221', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1119, 'n_words': 226}